diff options
author | Dan J Miller <danjm.com@gmail.com> | 2018-06-28 03:57:51 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-28 03:57:51 +0800 |
commit | 08b69a0cb07c46a7adfa180463e97d802f24d0dd (patch) | |
tree | 0e8ae94f69204bc0443a8066b4a48ef204a26283 /ui/app/selectors.js | |
parent | 1839ab53461913716d573a54511a408eb7865077 (diff) | |
parent | 957d729c17fcf49881d5e403afb9bfc9d0fd852a (diff) | |
download | tangerine-wallet-browser-08b69a0cb07c46a7adfa180463e97d802f24d0dd.tar.gz tangerine-wallet-browser-08b69a0cb07c46a7adfa180463e97d802f24d0dd.tar.zst tangerine-wallet-browser-08b69a0cb07c46a7adfa180463e97d802f24d0dd.zip |
Merge pull request #4677 from MetaMask/customize-gas-loading-wait
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 } |