From 64e6d36944e7ad6da2c4542e590bc0931c70df74 Mon Sep 17 00:00:00 2001 From: Jaco Greeff Date: Thu, 22 Jun 2017 20:14:04 +0200 Subject: [PATCH] Fix gas editor doubling-up on gas (#5820) --- js/src/modals/Transfer/store.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/js/src/modals/Transfer/store.js b/js/src/modals/Transfer/store.js index a0f99503c..737bab778 100644 --- a/js/src/modals/Transfer/store.js +++ b/js/src/modals/Transfer/store.js @@ -421,7 +421,6 @@ export default class TransferStore { const tokenBalance = this.getTokenBalance(); const { eth, token } = this.getValues(gasTotal); - let totalEth = gasTotal; let totalError = null; let valueError = null; @@ -445,7 +444,7 @@ export default class TransferStore { this.totalError = totalError; this.valueError = valueError; this.gasStore.setErrorTotal(totalError); - this.gasStore.setEthValue(totalEth); + this.gasStore.setEthValue(eth.sub(gasTotal)); this.total = this.api.util.fromWei(eth).toFixed();