diff options
author | Dan <danjm.com@gmail.com> | 2018-06-19 23:53:33 +0800 |
---|---|---|
committer | Dan <danjm.com@gmail.com> | 2018-06-27 21:31:26 +0800 |
commit | a2426688728e10ba660dea7ce1833794d7e9c90c (patch) | |
tree | 658edd09e4d56191c213379b3af24a17f7ada9c4 /ui/app/selectors.js | |
parent | b64292d92fccafe2cf99279bb170c486d2c3515c (diff) | |
download | tangerine-wallet-browser-a2426688728e10ba660dea7ce1833794d7e9c90c.tar.gz tangerine-wallet-browser-a2426688728e10ba660dea7ce1833794d7e9c90c.tar.zst tangerine-wallet-browser-a2426688728e10ba660dea7ce1833794d7e9c90c.zip |
Only show the customize gas modal if the estimateGas call is not currently in flight.
Diffstat (limited to 'ui/app/selectors.js')
-rw-r--r-- | ui/app/selectors.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ui/app/selectors.js b/ui/app/selectors.js index a29294b86..cf0affe9c 100644 --- a/ui/app/selectors.js +++ b/ui/app/selectors.js @@ -16,6 +16,7 @@ const selectors = { transactionsSelector, accountsWithSendEtherInfoSelector, getCurrentAccountWithSendEtherInfo, + getGasIsLoading, getGasPrice, getGasLimit, getForceGasMin, @@ -117,6 +118,10 @@ function transactionsSelector (state) { .sort((a, b) => b.time - a.time) } +function getGasIsLoading (state) { + return state.appState.gasIsLoading +} + function getGasPrice (state) { return state.metamask.send.gasPrice } |