diff options
author | Alexander Tseung <alextsg@gmail.com> | 2018-07-24 11:25:04 +0800 |
---|---|---|
committer | Alexander Tseung <alextsg@gmail.com> | 2018-07-24 11:25:04 +0800 |
commit | 152246f3b0862c8c5a8b42872852d236400c0e9d (patch) | |
tree | ddcaf398ef77eb07d5de35cfa96ac8eaa559c3cd /ui/app/helpers | |
parent | 2359062b62cf65f38b36ccb6bb33fa7d15ada1ae (diff) | |
download | tangerine-wallet-browser-152246f3b0862c8c5a8b42872852d236400c0e9d.tar tangerine-wallet-browser-152246f3b0862c8c5a8b42872852d236400c0e9d.tar.gz tangerine-wallet-browser-152246f3b0862c8c5a8b42872852d236400c0e9d.tar.bz2 tangerine-wallet-browser-152246f3b0862c8c5a8b42872852d236400c0e9d.tar.lz tangerine-wallet-browser-152246f3b0862c8c5a8b42872852d236400c0e9d.tar.xz tangerine-wallet-browser-152246f3b0862c8c5a8b42872852d236400c0e9d.tar.zst tangerine-wallet-browser-152246f3b0862c8c5a8b42872852d236400c0e9d.zip |
Add close window support to signature requests. Move logic to actions
Diffstat (limited to 'ui/app/helpers')
-rw-r--r-- | ui/app/helpers/confirm-transaction/util.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ui/app/helpers/confirm-transaction/util.js b/ui/app/helpers/confirm-transaction/util.js index 1373d28df..f015b2bf5 100644 --- a/ui/app/helpers/confirm-transaction/util.js +++ b/ui/app/helpers/confirm-transaction/util.js @@ -16,6 +16,8 @@ import { conversionGreaterThan, } from '../../conversion-util' +import { unconfirmedTransactionsCountSelector } from '../../selectors/confirm-transaction' + export function getTokenData (data = {}) { return abiDecoder.decodeMethod(data) } @@ -131,3 +133,7 @@ export function convertTokenToFiat ({ conversionRate: totalExchangeRate, }) } + +export function hasUnconfirmedTransactions (state) { + return unconfirmedTransactionsCountSelector(state) > 0 +} |