aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/helpers/utils/transactions.util.js
diff options
context:
space:
mode:
authorDan J Miller <danjm.com@gmail.com>2019-08-17 02:54:10 +0800
committerWhymarrh Whitby <whymarrh.whitby@gmail.com>2019-08-17 02:54:10 +0800
commit821529622e4baf095dc34c309b878d09f945da9b (patch)
tree2d68d862cd7e24c3e0b9fcf56046e01ec546d521 /ui/app/helpers/utils/transactions.util.js
parent2f5d7ac8c304260bf9f6aef487140c04741bd17c (diff)
downloadtangerine-wallet-browser-821529622e4baf095dc34c309b878d09f945da9b.tar.gz
tangerine-wallet-browser-821529622e4baf095dc34c309b878d09f945da9b.tar.zst
tangerine-wallet-browser-821529622e4baf095dc34c309b878d09f945da9b.zip
Fetch & display received transactions (#6996)
Diffstat (limited to 'ui/app/helpers/utils/transactions.util.js')
-rw-r--r--ui/app/helpers/utils/transactions.util.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/ui/app/helpers/utils/transactions.util.js b/ui/app/helpers/utils/transactions.util.js
index b65bda5b2..cb347ffaa 100644
--- a/ui/app/helpers/utils/transactions.util.js
+++ b/ui/app/helpers/utils/transactions.util.js
@@ -21,6 +21,7 @@ import {
SIGNATURE_REQUEST_KEY,
CONTRACT_INTERACTION_KEY,
CANCEL_ATTEMPT_ACTION_KEY,
+ DEPOSIT_TRANSACTION_KEY,
} from '../constants/transactions'
import log from 'loglevel'
@@ -124,6 +125,10 @@ export function isTokenMethodAction (transactionCategory) {
export function getTransactionActionKey (transaction) {
const { msgParams, type, transactionCategory } = transaction
+ if (transactionCategory === 'incoming') {
+ return DEPOSIT_TRANSACTION_KEY
+ }
+
if (type === 'cancel') {
return CANCEL_ATTEMPT_ACTION_KEY
}