diff options
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 f99f14aa8..8259bb052 100644 --- a/ui/app/selectors.js +++ b/ui/app/selectors.js @@ -35,6 +35,7 @@ const selectors = { getTotalUnapprovedCount, preferencesSelector, getMetaMaskAccounts, + getCurrentEthBalance, } module.exports = selectors @@ -137,6 +138,10 @@ function getCurrentAccountWithSendEtherInfo (state) { return accounts.find(({ address }) => address === currentAddress) } +function getCurrentEthBalance (state) { + return getCurrentAccountWithSendEtherInfo(state).balance +} + function getGasIsLoading (state) { return state.appState.gasIsLoading } |