summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-webextension
diff options
context:
space:
mode:
authorSebastian <sebasjm@gmail.com>2023-05-22 14:20:59 -0300
committerSebastian <sebasjm@gmail.com>2023-05-22 14:20:59 -0300
commit5fb13fae2461b13c021ed6f2636e179705a3bb19 (patch)
tree458e04f8e351834e3be6932e1bfe0efad430d821 /packages/taler-wallet-webextension
parent434bb4af25a1e8d07b6d1a75235b32a818565bc1 (diff)
downloadwallet-core-5fb13fae2461b13c021ed6f2636e179705a3bb19.tar.gz
wallet-core-5fb13fae2461b13c021ed6f2636e179705a3bb19.tar.bz2
wallet-core-5fb13fae2461b13c021ed6f2636e179705a3bb19.zip
show some info when a refund get the originated purchase deleted
Diffstat (limited to 'packages/taler-wallet-webextension')
-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={