aboutsummaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2023-11-02 23:19:09 -0300
committerSebastian <sebasjm@gmail.com>2023-11-02 23:19:09 -0300
commitf7910c5d677e474a085052d43633813557d9c35e (patch)
tree51d3b75a9578c57441c90c726e9fe7f4ccf39842 /packages
parent5823d9606d3fc2994a16be58b74a1da82f079053 (diff)
downloadwallet-core-f7910c5d677e474a085052d43633813557d9c35e.tar.xz
do not show details on kyc or aml
Diffstat (limited to 'packages')
-rw-r--r--packages/taler-wallet-webextension/src/wallet/Transaction.tsx28
1 files changed, 15 insertions, 13 deletions
diff --git a/packages/taler-wallet-webextension/src/wallet/Transaction.tsx b/packages/taler-wallet-webextension/src/wallet/Transaction.tsx
index fa4b75639..076110522 100644
--- a/packages/taler-wallet-webextension/src/wallet/Transaction.tsx
+++ b/packages/taler-wallet-webextension/src/wallet/Transaction.tsx
@@ -463,20 +463,22 @@ export function TransactionView({
{transaction.exchangeBaseUrl}
</Header>
- {/**FIXME: DD37 check if this holds */}
{transaction.txState.major !==
- TransactionMajorState.Pending ? undefined : transaction
- .withdrawalDetails.type === WithdrawalType.ManualTransfer ? (
- //manual withdrawal
- <BankDetailsByPaytoType
- amount={raw}
- exchangeBaseUrl={transaction.exchangeBaseUrl}
- subject={transaction.withdrawalDetails.reservePub}
- />
- ) : (
- //integrated bank withdrawal
- <ShowWithdrawalDetailForBankIntegrated transaction={transaction} />
- )}
+ TransactionMajorState.Pending ? undefined :
+ transaction.txState.minor === TransactionMinorState.KycRequired ||
+ transaction.txState.minor === TransactionMinorState.AmlRequired ? undefined :
+ transaction
+ .withdrawalDetails.type === WithdrawalType.ManualTransfer ? (
+ //manual withdrawal
+ <BankDetailsByPaytoType
+ amount={raw}
+ exchangeBaseUrl={transaction.exchangeBaseUrl}
+ subject={transaction.withdrawalDetails.reservePub}
+ />
+ ) : (
+ //integrated bank withdrawal
+ <ShowWithdrawalDetailForBankIntegrated transaction={transaction} />
+ )}
<Part
title={i18n.str`Details`}
text={