From efbde0e16033542ae104f5365be5cee6e65ef7b0 Mon Sep 17 00:00:00 2001
From: Sebastian <sebasjm@gmail.com>
Date: Wed, 29 Mar 2023 00:06:24 -0300
Subject: handle kyc error on invoice and transfer

---
 .../taler-wallet-webextension/src/wallet/Transaction.tsx  | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

(limited to 'packages/taler-wallet-webextension/src/wallet/Transaction.tsx')

diff --git a/packages/taler-wallet-webextension/src/wallet/Transaction.tsx b/packages/taler-wallet-webextension/src/wallet/Transaction.tsx
index b9b1aa198..217a77575 100644
--- a/packages/taler-wallet-webextension/src/wallet/Transaction.tsx
+++ b/packages/taler-wallet-webextension/src/wallet/Transaction.tsx
@@ -879,13 +879,14 @@ export function TransactionView({
           kind="neutral"
         />
         {transaction.extendedStatus ===
-          ExtendedStatus.Pending /** pending is not-pay */ && (
-          <Part
-            title={i18n.str`URI`}
-            text={<ShowQrWithCopy text={transaction.talerUri} />}
-            kind="neutral"
-          />
-        )}
+          ExtendedStatus.Pending /** pending is not-pay */ &&
+          !transaction.error && (
+            <Part
+              title={i18n.str`URI`}
+              text={<ShowQrWithCopy text={transaction.talerUri} />}
+              kind="neutral"
+            />
+          )}
         <Part
           title={i18n.str`Details`}
           text={
-- 
cgit v1.2.3

