From a2a97d1313209f997a8d8860419240b748457f6b Mon Sep 17 00:00:00 2001 From: shellawa <69383963+shellawa@users.noreply.github.com> Date: Sun, 12 Apr 2026 23:14:44 +0700 Subject: [PATCH] fix: use nullish coalescing instead of OR on fraction digits (#5788) --- packages/ui/src/composables/format-money.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ui/src/composables/format-money.ts b/packages/ui/src/composables/format-money.ts index 30abe6a41..70d7096c6 100644 --- a/packages/ui/src/composables/format-money.ts +++ b/packages/ui/src/composables/format-money.ts @@ -68,7 +68,7 @@ function getMaxDigits(currency: string): number { style: 'currency', currency, }) - maxDigits = formatter.resolvedOptions().maximumFractionDigits || 2 + maxDigits = formatter.resolvedOptions().maximumFractionDigits ?? 2 } catch { maxDigits = 2 }