diff --git a/apps/remix-ide/src/app/tabs/runTab/settings.js b/apps/remix-ide/src/app/tabs/runTab/settings.js index 94b56d4fe5..e47e8c1ddc 100644 --- a/apps/remix-ide/src/app/tabs/runTab/settings.js +++ b/apps/remix-ide/src/app/tabs/runTab/settings.js @@ -16,8 +16,8 @@ class SettingsUI { this._components = {} this.blockchain.event.register('transactionExecuted', (error, from, to, data, lookupOnly, txResult) => { + if (!lookupOnly) this.el.querySelector('#value').value = 0 if (error) return - if (!lookupOnly) this.el.querySelector('#value').value = '0' this.updateAccountBalances() }) this._components = { @@ -53,6 +53,10 @@ class SettingsUI { }) } + validateValue () { + if (this.el.querySelector('#value').value === '') this.el.querySelector('#value').value = 0 + } + render () { this.netUI = yo`` @@ -117,7 +121,15 @@ class SettingsUI {