summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-webextension/src/wallet/Transaction.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'packages/taler-wallet-webextension/src/wallet/Transaction.tsx')
-rw-r--r--packages/taler-wallet-webextension/src/wallet/Transaction.tsx31
1 files changed, 18 insertions, 13 deletions
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