diff options
author | Sebastian <sebasjm@gmail.com> | 2023-05-22 14:20:59 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-05-22 14:20:59 -0300 |
commit | 5fb13fae2461b13c021ed6f2636e179705a3bb19 (patch) | |
tree | 458e04f8e351834e3be6932e1bfe0efad430d821 /packages | |
parent | 434bb4af25a1e8d07b6d1a75235b32a818565bc1 (diff) | |
download | wallet-core-5fb13fae2461b13c021ed6f2636e179705a3bb19.tar.xz |
show some info when a refund get the originated purchase deleted
Diffstat (limited to 'packages')
-rw-r--r-- | packages/taler-wallet-webextension/src/components/TransactionItem.tsx | 8 |
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={ |