diff options
author | Dan <danjm.com@gmail.com> | 2018-03-28 09:53:57 +0800 |
---|---|---|
committer | Dan <danjm.com@gmail.com> | 2018-03-28 23:00:03 +0800 |
commit | d6ebf5d94e374adbd2c2a66e8e5fb7f35fe5b6b2 (patch) | |
tree | 8d344701a4ef1271553d2b98b6b519e4c42cc101 /ui | |
parent | b324a9c29506661c18034df37f2cb17e66972915 (diff) | |
download | dexon-wallet-d6ebf5d94e374adbd2c2a66e8e5fb7f35fe5b6b2.tar.gz dexon-wallet-d6ebf5d94e374adbd2c2a66e8e5fb7f35fe5b6b2.tar.zst dexon-wallet-d6ebf5d94e374adbd2c2a66e8e5fb7f35fe5b6b2.zip |
Confirm send token detects if balance is sufficient for gas.
Diffstat (limited to 'ui')
-rw-r--r-- | ui/app/components/customize-gas-modal/index.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/app/components/customize-gas-modal/index.js b/ui/app/components/customize-gas-modal/index.js index 8234f8d1..3f5e2064 100644 --- a/ui/app/components/customize-gas-modal/index.js +++ b/ui/app/components/customize-gas-modal/index.js @@ -64,6 +64,7 @@ function mapDispatchToProps (dispatch) { updateGasLimit: newGasLimit => dispatch(actions.updateGasLimit(newGasLimit)), updateGasTotal: newGasTotal => dispatch(actions.updateGasTotal(newGasTotal)), updateSendAmount: newAmount => dispatch(actions.updateSendAmount(newAmount)), + updateSendErrors: error => dispatch(actions.updateSendErrors(error)), } } @@ -106,6 +107,7 @@ CustomizeGasModal.prototype.save = function (gasPrice, gasLimit, gasTotal) { selectedToken, balance, updateSendAmount, + updateSendErrors, } = this.props if (maxModeOn && !selectedToken) { @@ -120,6 +122,7 @@ CustomizeGasModal.prototype.save = function (gasPrice, gasLimit, gasTotal) { updateGasPrice(ethUtil.addHexPrefix(gasPrice)) updateGasLimit(ethUtil.addHexPrefix(gasLimit)) updateGasTotal(ethUtil.addHexPrefix(gasTotal)) + updateSendErrors({ insufficientFunds: false }) hideModal() } |