Do not display empty Functions block

pull/1/head
Alex Beregszaszi 8 years ago
parent cdfb8c7313
commit 17e6f6eec0
  1. 2
      src/app/ui-helper.js

@ -141,7 +141,9 @@ module.exports = {
for (var fun in contract.functionHashes) { for (var fun in contract.functionHashes) {
funHashes += contract.functionHashes[fun] + ' ' + fun + '\n' funHashes += contract.functionHashes[fun] + ' ' + fun + '\n'
} }
if (funHashes.length > 0) {
details.append(this.preRow('Functions', funHashes)) details.append(this.preRow('Functions', funHashes))
}
var gasEstimates = this.formatGasEstimates(contract.gasEstimates) var gasEstimates = this.formatGasEstimates(contract.gasEstimates)
if (gasEstimates) { if (gasEstimates) {

Loading…
Cancel
Save