Skip to content

Commit

Permalink
fix precision for numeric values
Browse files Browse the repository at this point in the history
  • Loading branch information
rithviknishad committed May 16, 2024
1 parent 51d4e44 commit b17053c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const formatValue = (value: unknown, key?: string): ReactNode => {
}

if (typeof value === "number") {
return value;
return value % 1 ? value.toFixed(2) : value;
}

if (typeof value === "string") {
Expand Down

0 comments on commit b17053c

Please sign in to comment.