Skip to content

Commit

Permalink
move context up
Browse files Browse the repository at this point in the history
  • Loading branch information
GrandSchtroumpf committed Oct 30, 2024
1 parent d6c7ffa commit a6fcd75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/helpers/number.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,11 @@ export function prettifyNumber(
try {
formatter = new Intl.NumberFormat(locale, intlOptions);
} catch (e) {
setContext('prettifyNumber', intlOptions);
captureException(e);
if (intlOptions.minimumFractionDigits) {
intlOptions.maximumFractionDigits = intlOptions.minimumFractionDigits + 1;
}
setContext('prettifyNumber', intlOptions);
captureException(e);
formatter = new Intl.NumberFormat(locale, intlOptions);
}

Expand Down

0 comments on commit a6fcd75

Please sign in to comment.