From 6bb782677cd14e3ec6af249f5d8a2e93dc8e8b5f Mon Sep 17 00:00:00 2001 From: Sebastian Date: Tue, 16 Apr 2024 12:17:32 -0300 Subject: fix 8392 --- .../src/wallet/Settings.tsx | 1 + .../src/wallet/Transaction.tsx | 97 +++++++++++----------- 2 files changed, 51 insertions(+), 47 deletions(-) (limited to 'packages/taler-wallet-webextension/src/wallet') diff --git a/packages/taler-wallet-webextension/src/wallet/Settings.tsx b/packages/taler-wallet-webextension/src/wallet/Settings.tsx index 2d80e4c36..0d0a31a2d 100644 --- a/packages/taler-wallet-webextension/src/wallet/Settings.tsx +++ b/packages/taler-wallet-webextension/src/wallet/Settings.tsx @@ -274,6 +274,7 @@ function AdvanceSettings(): VNode { { diff --git a/packages/taler-wallet-webextension/src/wallet/Transaction.tsx b/packages/taler-wallet-webextension/src/wallet/Transaction.tsx index af6868434..1f0293352 100644 --- a/packages/taler-wallet-webextension/src/wallet/Transaction.tsx +++ b/packages/taler-wallet-webextension/src/wallet/Transaction.tsx @@ -242,53 +242,56 @@ function TransactionTemplate({ )} /> ) : undefined} - {transaction.txState.minor === TransactionMinorState.KycRequired && ( - - - Follow this link to the{` `} - - KYC verifier. - - - - ) : ( - i18n.str`No additional information has been provided.` - ), - }} - /> - )} - {transaction.txState.minor === TransactionMinorState.AmlRequired && ( - - - The transaction has been blocked since the account required an AML - check. - - - )} - {transaction.txState.major === TransactionMajorState.Pending && ( - -
- This transaction is not completed - - - -
-
- )} + {transaction.txState.major === TransactionMajorState.Pending && + (transaction.txState.minor === TransactionMinorState.KycRequired ? ( + + + Follow this link to the{` `} + + KYC verifier. + + + + ) : ( + i18n.str`No additional information has been provided.` + ), + }} + /> + ) : transaction.txState.minor === + TransactionMinorState.AmlRequired ? ( + + + The transaction has been blocked since the account required an + AML check. + + + ) : ( + +
+ + This transaction is not completed + + + + +
+
+ ))} {transaction.txState.major === TransactionMajorState.Aborted && ( This transaction was aborted. -- cgit v1.2.3