From 6be2af2f86b5510d66a600467c2868b0f12a8413 Mon Sep 17 00:00:00 2001 From: Z8MB1E Date: Mon, 12 Oct 2026 23:04:29 -0400 Subject: [PATCH] fix(banking): render currency emblem inline to stop the hydration mismatch CurrencyAmount returned a div, but callers place it inside p and span (wallet hero balance, account cards, unit funds), which is invalid nesting: the browser's parser closes the p early, so server and client markup differ and React reports a hydration error on the banking pages. An inline-flex span renders identically in all four call sites and is valid in each. --- src/components/frontend/banking/CurrencyAmount.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/frontend/banking/CurrencyAmount.tsx b/src/components/frontend/banking/CurrencyAmount.tsx index c8f1154e..ee6d69c1 100644 --- a/src/components/frontend/banking/CurrencyAmount.tsx +++ b/src/components/frontend/banking/CurrencyAmount.tsx @@ -19,9 +19,12 @@ export function CurrencyAmount({ const showSymbol = currency != null && typeof currency === "object" && isCurrencyConfig(currency) && !!currency.symbol; return ( -
+ // Inline-flex , not
: callers render this inside

/ + // (wallet hero, account cards), where a block element is invalid nesting + // and triggers a hydration mismatch. + {formatAmount(value, currency, showSymbol ? { hideLabel: true } : undefined)} -

+
); }