From 8eee38d55936c194637ecead302dde69ec0b9897 Mon Sep 17 00:00:00 2001
From: Sebastian <sebasjm@gmail.com>
Date: Wed, 5 Apr 2023 12:06:24 -0300
Subject: fix #7791

---
 packages/taler-wallet-webextension/src/components/CurrentAlerts.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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

diff --git a/packages/taler-wallet-webextension/src/components/CurrentAlerts.tsx b/packages/taler-wallet-webextension/src/components/CurrentAlerts.tsx
index 47863d73e..0f12b8afa 100644
--- a/packages/taler-wallet-webextension/src/components/CurrentAlerts.tsx
+++ b/packages/taler-wallet-webextension/src/components/CurrentAlerts.tsx
@@ -122,7 +122,7 @@ export function AlertView({
     <Alert title={alert.message} severity={alert.type} onClose={onClose}>
       <div style={{ display: "flex", flexDirection: "column" }}>
         <div>{alert.description}</div>
-        {alert.type === "error" ? (
+        {alert.type === "error" && alert.cause !== undefined ? (
           <AlertContext context={alert.context} cause={alert.cause} />
         ) : undefined}
       </div>
-- 
cgit v1.2.3

