Skip to content

Commit

Permalink
Always show decimals
Browse files Browse the repository at this point in the history
  • Loading branch information
ijreilly committed Oct 3, 2024
1 parent 816278f commit 4acbb14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/twenty-front/src/utils/format/number.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export const DEFAULT_DECIMAL_VALUE = 0;

export const formatNumber = (value: number, decimals?: number): string => {
return value.toLocaleString('en-US', {
minimumFractionDigits: 0,
minimumFractionDigits: decimals ?? DEFAULT_DECIMAL_VALUE,
maximumFractionDigits: decimals ?? DEFAULT_DECIMAL_VALUE,
});
};

0 comments on commit 4acbb14

Please sign in to comment.