Skip to content

Commit 9c6db22

Browse files
committed
Fix formatting numbers
1 parent 43c348c commit 9c6db22

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

frontend/src/utils/formatter.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,12 @@ export function convertFraction(convert_fraction, value) {
4444
return '12½';
4545
}
4646

47-
return i18n.global.n(value);
47+
try {
48+
return i18n.global.n(value);
49+
}
50+
catch (e) {
51+
return value;
52+
}
4853
}
4954

5055
export function formatYear(enable_bc, year) {

0 commit comments

Comments
 (0)