From 17e6f6eec0a2094c31efea7d4a205700edf4827f Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Fri, 4 Nov 2016 01:31:40 +0000 Subject: [PATCH] Do not display empty Functions block --- src/app/ui-helper.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/ui-helper.js b/src/app/ui-helper.js index 7b1cf8a8df..5dae5fbdc3 100644 --- a/src/app/ui-helper.js +++ b/src/app/ui-helper.js @@ -141,7 +141,9 @@ module.exports = { for (var fun in contract.functionHashes) { funHashes += contract.functionHashes[fun] + ' ' + fun + '\n' } - details.append(this.preRow('Functions', funHashes)) + if (funHashes.length > 0) { + details.append(this.preRow('Functions', funHashes)) + } var gasEstimates = this.formatGasEstimates(contract.gasEstimates) if (gasEstimates) {