diff --git a/src/app/transactions/page.tsx b/src/app/transactions/page.tsx index acf02ce..fbeb8aa 100644 --- a/src/app/transactions/page.tsx +++ b/src/app/transactions/page.tsx @@ -1059,11 +1059,32 @@ function TransactionsContent() { - {formatAmount(t.amount_aud ?? t.amount, t.transaction_type)} - {t.currency && t.currency !== "AUD" && ( -
+ {/* + A row with no AUD figure must NOT be printed as AUD. + `amount_aud ?? amount` formatted with the default currency + rendered a USD 10,782.00 Wise credit as "+$10,782.00" in a + column of AUD figures — the real value was about $15,500, + and the row directly above it (the same payment from the + statement) showed exactly that. The native figure is the + only true one here, so it becomes the headline and the + absence of a rate is stated rather than papered over. + */} + {t.amount_unconverted ? ( + <> {formatAmount(t.amount, t.transaction_type, t.currency)} -
+
+ no AUD rate +
+ + ) : ( + <> + {formatAmount(t.amount_aud ?? t.amount, t.transaction_type)} + {t.currency && t.currency !== "AUD" && ( +
+ {formatAmount(t.amount, t.transaction_type, t.currency)} +
+ )} + )}