summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/taler-wallet-webextension/src/components/TransactionItem.tsx8
1 files changed, 6 insertions, 2 deletions
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={