There was an error while loading. Please reload this page.
1 parent 71e4f7c commit a2a97d1Copy full SHA for a2a97d1
1 file changed
packages/ui/src/composables/format-money.ts
@@ -68,7 +68,7 @@ function getMaxDigits(currency: string): number {
68
style: 'currency',
69
currency,
70
})
71
- maxDigits = formatter.resolvedOptions().maximumFractionDigits || 2
+ maxDigits = formatter.resolvedOptions().maximumFractionDigits ?? 2
72
} catch {
73
maxDigits = 2
74
}
0 commit comments