taler-typescript-core

Wallet core logic and WebUIs for various components
Log | Files | Refs | Submodules | README | LICENSE

commit f7910c5d677e474a085052d43633813557d9c35e
parent 5823d9606d3fc2994a16be58b74a1da82f079053
Author: Sebastian <sebasjm@gmail.com>
Date:   Thu,  2 Nov 2023 23:19:09 -0300

do not show details on kyc or aml

Diffstat:
Mpackages/taler-wallet-webextension/src/wallet/Transaction.tsx | 28+++++++++++++++-------------
1 file 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 @@ -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={