aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/helpers/confirm-transaction/util.js
diff options
context:
space:
mode:
authorAlexander Tseung <alextsg@users.noreply.github.com>2018-07-25 02:49:50 +0800
committerGitHub <noreply@github.com>2018-07-25 02:49:50 +0800
commitfed9ae0deed5853014cfc76b4314195d477f14f4 (patch)
treeef81d610e330241215b0b5878adbf3e5d74c8771 /ui/app/helpers/confirm-transaction/util.js
parent653e42cf79f20e57af63f2bcc36cb3c236239e9b (diff)
parenta61227f224e37559c8d6e2c59441b0032633feaf (diff)
downloadtangerine-wallet-browser-fed9ae0deed5853014cfc76b4314195d477f14f4.tar
tangerine-wallet-browser-fed9ae0deed5853014cfc76b4314195d477f14f4.tar.gz
tangerine-wallet-browser-fed9ae0deed5853014cfc76b4314195d477f14f4.tar.bz2
tangerine-wallet-browser-fed9ae0deed5853014cfc76b4314195d477f14f4.tar.lz
tangerine-wallet-browser-fed9ae0deed5853014cfc76b4314195d477f14f4.tar.xz
tangerine-wallet-browser-fed9ae0deed5853014cfc76b4314195d477f14f4.tar.zst
tangerine-wallet-browser-fed9ae0deed5853014cfc76b4314195d477f14f4.zip
Merge pull request #4865 from MetaMask/i4829-close-notifications-from-ui
Close notifications from UI actions
Diffstat (limited to 'ui/app/helpers/confirm-transaction/util.js')
-rw-r--r--ui/app/helpers/confirm-transaction/util.js6
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
+}