diff options
author | Dan <danjm.com@gmail.com> | 2018-06-19 23:53:33 +0800 |
---|---|---|
committer | Dan <danjm.com@gmail.com> | 2018-06-19 23:53:33 +0800 |
commit | 957d729c17fcf49881d5e403afb9bfc9d0fd852a (patch) | |
tree | b965c67d2fb20f5fc1a06155182f38d91a8c90d8 /ui/app/selectors.js | |
parent | 6bf09c0ffe39196ed97405001ee9a094d69a0da2 (diff) | |
download | dexon-wallet-957d729c17fcf49881d5e403afb9bfc9d0fd852a.tar.gz dexon-wallet-957d729c17fcf49881d5e403afb9bfc9d0fd852a.tar.zst dexon-wallet-957d729c17fcf49881d5e403afb9bfc9d0fd852a.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 a29294b8..cf0affe9 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 } |