We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 71e4f7c commit 41b6b6dCopy full SHA for 41b6b6d
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