Fix gas editor doubling-up on gas (#5820)

This commit is contained in:
Jaco Greeff 2017-06-22 20:14:04 +02:00 committed by Gav Wood
parent f9033facd3
commit 64e6d36944
1 changed files with 1 additions and 2 deletions

View File

@ -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();