From 5fb13fae2461b13c021ed6f2636e179705a3bb19 Mon Sep 17 00:00:00 2001
From: Sebastian <sebasjm@gmail.com>
Date: Mon, 22 May 2023 14:20:59 -0300
Subject: show some info when a refund get the originated purchase deleted

---
 .../taler-wallet-webextension/src/components/TransactionItem.tsx  | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

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

diff --git a/packages/taler-wallet-webextension/src/components/TransactionItem.tsx b/packages/taler-wallet-webextension/src/components/TransactionItem.tsx
index eda190110..dc11c4b7e 100644
--- a/packages/taler-wallet-webextension/src/components/TransactionItem.tsx
+++ b/packages/taler-wallet-webextension/src/components/TransactionItem.tsx
@@ -92,8 +92,12 @@ export function TransactionItem(props: { tx: Transaction }): VNode {
           id={tx.transactionId}
           amount={tx.amountEffective}
           debitCreditIndicator={"credit"}
-          subtitle={"tx.info.summary"} //FIXME: DD37 wallet-core is not returning this value
-          title={"tx.info.merchant.name"} //FIXME: DD37 wallet-core is not returning this value
+          subtitle={tx.paymentInfo ? tx.paymentInfo.summary : undefined} //FIXME: DD37 wallet-core is not returning this value
+          title={
+            tx.paymentInfo
+              ? tx.paymentInfo.merchant.name
+              : "--unknown merchant--"
+          } //FIXME: DD37 wallet-core is not returning this value
           timestamp={AbsoluteTime.fromTimestamp(tx.timestamp)}
           iconPath={"R"}
           pending={
-- 
cgit v1.2.3

