Skip to content

Commit 41b6b6d

Browse files
committed
fix: use nullish coalescing instead of OR on fraction digits
1 parent 71e4f7c commit 41b6b6d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/ui/src/composables/format-money.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ function getMaxDigits(currency: string): number {
6868
style: 'currency',
6969
currency,
7070
})
71-
maxDigits = formatter.resolvedOptions().maximumFractionDigits || 2
71+
maxDigits = formatter.resolvedOptions().maximumFractionDigits ?? 2
7272
} catch {
7373
maxDigits = 2
7474
}

0 commit comments

Comments
 (0)