diff --git a/src/universal-dapp.js b/src/universal-dapp.js index 3b669d93e0..3b9805552f 100644 --- a/src/universal-dapp.js +++ b/src/universal-dapp.js @@ -135,6 +135,11 @@ UniversalDApp.prototype.getBalance = function (address, cb) { UniversalDApp.prototype.render = function () { var self = this; + // NOTE: don't display anything if there are no contracts to display + if (self.contracts.length === 0) { + return self.$el; + } + var $legend = $('
') .append($('
').text('Attach')) .append($('
').text('Transact')) @@ -142,6 +147,7 @@ UniversalDApp.prototype.render = function () { self.$el.append($legend); + // NOTE: this might be used in the future if (self.contracts.length === 0) { self.$el.append(self.getABIInputForm()); } else {