From a22b224d7d932ce7d76b2dae2addb2b4b8c0e6ba Mon Sep 17 00:00:00 2001 From: chip Date: Wed, 28 Oct 2020 18:33:21 +0100 Subject: [PATCH] added transfers to transactions list --- phone/src/apps/bank/components/account/AccountTransactions.tsx | 3 ++- .../src/apps/bank/components/transactions/TransactionList.tsx | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/phone/src/apps/bank/components/account/AccountTransactions.tsx b/phone/src/apps/bank/components/account/AccountTransactions.tsx index e908665..3f0e8aa 100644 --- a/phone/src/apps/bank/components/account/AccountTransactions.tsx +++ b/phone/src/apps/bank/components/account/AccountTransactions.tsx @@ -69,6 +69,7 @@ export const AccountTransactions = (): any => { const TransactionTypes = { Deposit: classes.depositType, Withdraw: classes.withdrawType, + Transfer: classes.depositType }; const { transactionList } = useTransactions(); @@ -91,7 +92,7 @@ export const AccountTransactions = (): any => {

- {transaction.type == "Deposit" ? "+" : "-"} + {transaction.type == "Withdraw" ? "-" : "+"} {transaction.amount}

diff --git a/phone/src/apps/bank/components/transactions/TransactionList.tsx b/phone/src/apps/bank/components/transactions/TransactionList.tsx index 5096f30..0727829 100644 --- a/phone/src/apps/bank/components/transactions/TransactionList.tsx +++ b/phone/src/apps/bank/components/transactions/TransactionList.tsx @@ -34,6 +34,7 @@ export const TransactionList = () => { const TransactionTypes = { Deposit: classes.depositType, Withdraw: classes.withdrawType, + Transfer: classes.depositType }; @@ -63,7 +64,7 @@ export const TransactionList = () => {

- {transaction.type == "Deposit" ? "+" : "-"} + {transaction.type == "Withdraw" ? "-" : "+"} {transaction.amount}