Skip to content

Commit

Permalink
#764 Format number as number when currency is not supported
Browse files Browse the repository at this point in the history
  • Loading branch information
Polleps committed Jan 23, 2024
1 parent 5838170 commit 646bf03
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ export function formatNumber(

return formatter.format(value);
} catch (e) {
console.error(e);

return value.toString();
// The browser doesn't support the currency so we'll just format it as a number.
}
}

Expand Down

0 comments on commit 646bf03

Please sign in to comment.