aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/customize-gas-modal/index.js
diff options
context:
space:
mode:
authorkumavis <kumavis@users.noreply.github.com>2018-03-31 09:36:08 +0800
committerGitHub <noreply@github.com>2018-03-31 09:36:08 +0800
commit2e57c36f36165e85cabeffc3cf0ade4998e352e1 (patch)
tree4d7c825b46b64e1773ac73964eb859dd3986052b /ui/app/components/customize-gas-modal/index.js
parente99a707e3d5c0ad439930e72bad4cf0b5e005099 (diff)
parent2be6f8bae0e516d49c83776a06dcbf82971a0a19 (diff)
downloadtangerine-wallet-browser-2e57c36f36165e85cabeffc3cf0ade4998e352e1.tar
tangerine-wallet-browser-2e57c36f36165e85cabeffc3cf0ade4998e352e1.tar.gz
tangerine-wallet-browser-2e57c36f36165e85cabeffc3cf0ade4998e352e1.tar.bz2
tangerine-wallet-browser-2e57c36f36165e85cabeffc3cf0ade4998e352e1.tar.lz
tangerine-wallet-browser-2e57c36f36165e85cabeffc3cf0ade4998e352e1.tar.xz
tangerine-wallet-browser-2e57c36f36165e85cabeffc3cf0ade4998e352e1.tar.zst
tangerine-wallet-browser-2e57c36f36165e85cabeffc3cf0ade4998e352e1.zip
Merge pull request #3762 from danjm/i3471-checkbalanceonconfirmscreen
Checking for sufficient balance in tx confirmation screen
Diffstat (limited to 'ui/app/components/customize-gas-modal/index.js')
-rw-r--r--ui/app/components/customize-gas-modal/index.js3
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 825366cb2..4c693d1c3 100644
--- a/ui/app/components/customize-gas-modal/index.js
+++ b/ui/app/components/customize-gas-modal/index.js
@@ -65,6 +65,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)),
}
}
@@ -112,6 +113,7 @@ CustomizeGasModal.prototype.save = function (gasPrice, gasLimit, gasTotal) {
selectedToken,
balance,
updateSendAmount,
+ updateSendErrors,
} = this.props
if (maxModeOn && !selectedToken) {
@@ -126,6 +128,7 @@ CustomizeGasModal.prototype.save = function (gasPrice, gasLimit, gasTotal) {
updateGasPrice(ethUtil.addHexPrefix(gasPrice))
updateGasLimit(ethUtil.addHexPrefix(gasLimit))
updateGasTotal(ethUtil.addHexPrefix(gasTotal))
+ updateSendErrors({ insufficientFunds: false })
hideModal()
}