diff options
author | Whymarrh Whitby <whymarrh.whitby@gmail.com> | 2019-02-08 22:22:19 +0800 |
---|---|---|
committer | Whymarrh Whitby <whymarrh.whitby@gmail.com> | 2019-02-09 03:14:45 +0800 |
commit | 0972e23dcd9c15abe9a3229f9514b3b2f1ccd673 (patch) | |
tree | 47dcdba550c9b070a9a3d0d056fa50c93ef429c8 /ui | |
parent | 57ead4914f6f9fd1fe47b865559e4908a36f6a8a (diff) | |
download | tangerine-wallet-browser-0972e23dcd9c15abe9a3229f9514b3b2f1ccd673.tar tangerine-wallet-browser-0972e23dcd9c15abe9a3229f9514b3b2f1ccd673.tar.gz tangerine-wallet-browser-0972e23dcd9c15abe9a3229f9514b3b2f1ccd673.tar.bz2 tangerine-wallet-browser-0972e23dcd9c15abe9a3229f9514b3b2f1ccd673.tar.lz tangerine-wallet-browser-0972e23dcd9c15abe9a3229f9514b3b2f1ccd673.tar.xz tangerine-wallet-browser-0972e23dcd9c15abe9a3229f9514b3b2f1ccd673.tar.zst tangerine-wallet-browser-0972e23dcd9c15abe9a3229f9514b3b2f1ccd673.zip |
Add e2e tests adjusting gas before sending
Diffstat (limited to 'ui')
-rw-r--r-- | ui/app/components/send/send-content/send-gas-row/send-gas-row.container.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ui/app/components/send/send-content/send-gas-row/send-gas-row.container.js b/ui/app/components/send/send-content/send-gas-row/send-gas-row.container.js index a3bc73256..50cb47178 100644 --- a/ui/app/components/send/send-content/send-gas-row/send-gas-row.container.js +++ b/ui/app/components/send/send-content/send-gas-row/send-gas-row.container.js @@ -74,12 +74,16 @@ function mapDispatchToProps (dispatch) { setGasPrice: (newPrice, gasLimit) => { dispatch(setGasPrice(newPrice)) dispatch(setCustomGasPrice(newPrice)) - dispatch(setGasTotal(calcGasTotal(gasLimit, newPrice))) + if (gasLimit) { + dispatch(setGasTotal(calcGasTotal(gasLimit, newPrice))) + } }, setGasLimit: (newLimit, gasPrice) => { dispatch(setGasLimit(newLimit)) dispatch(setCustomGasLimit(newLimit)) - dispatch(setGasTotal(calcGasTotal(newLimit, gasPrice))) + if (gasPrice) { + dispatch(setGasTotal(calcGasTotal(newLimit, gasPrice))) + } }, showGasButtonGroup: () => dispatch(showGasButtonGroup()), resetCustomData: () => dispatch(resetCustomData()), |