gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-wallet-core] 02/07: do not show details on kyc or aml


From: gnunet
Subject: [taler-wallet-core] 02/07: do not show details on kyc or aml
Date: Fri, 03 Nov 2023 23:13:52 +0100

This is an automated email from the git hooks/post-receive script.

sebasjm pushed a commit to branch master
in repository wallet-core.

commit f7910c5d677e474a085052d43633813557d9c35e
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Thu Nov 2 23:19:09 2023 -0300

    do not show details on kyc or aml
---
 .../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
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={

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]