From 3e95ae356a98d01e523bdf48547db4114ff224fe Mon Sep 17 00:00:00 2001
From: Sebastian <sebasjm@gmail.com>
Date: Mon, 22 May 2023 10:40:13 -0300
Subject: fix break on build

---
 .../src/wallet/Transaction.tsx                     | 31 +++++++++++++---------
 1 file changed, 18 insertions(+), 13 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 cd240ffea..938d62490 100644
--- a/packages/taler-wallet-webextension/src/wallet/Transaction.tsx
+++ b/packages/taler-wallet-webextension/src/wallet/Transaction.tsx
@@ -823,30 +823,35 @@ export function TransactionView({
           total={effective}
           kind="positive"
         >
-          {"transaction.info.summary"}
-        </Header>
-
-        <Part
-          title={i18n.str`Merchant`}
-          text={"transaction.info.merchant.name" as TranslatedString}
-          kind="neutral"
-        />
-        <Part
-          title={i18n.str`Original order ID`}
-          text={
+          {transaction.paymentInfo ? (
             <a
               href={Pages.balanceTransaction({
                 tid: transaction.refundedTransactionId,
               })}
             >
-              {"transaction.info.orderId"}
+              {transaction.paymentInfo.summary}
             </a>
+          ) : (
+            <span style={{ color: "gray" }}>-- deleted --</span>
+          )}
+        </Header>
+
+        <Part
+          title={i18n.str`Merchant`}
+          text={
+            (transaction.paymentInfo
+              ? transaction.paymentInfo.merchant.name
+              : "-- deleted --") as TranslatedString
           }
           kind="neutral"
         />
         <Part
           title={i18n.str`Purchase summary`}
-          text={"transaction.info.summary" as TranslatedString}
+          text={
+            (transaction.paymentInfo
+              ? transaction.paymentInfo.summary
+              : "-- deleted --") as TranslatedString
+          }
           kind="neutral"
         />
         <Part
-- 
cgit v1.2.3

