Skip to content

Commit

Permalink
fix: no need to return number
Browse files Browse the repository at this point in the history
  • Loading branch information
sendra committed Jul 17, 2024
1 parent f49b006 commit b0ca215
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/govv3/utils/markdownUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ export function formatNumberString(x: string | number) {
}

function limitDecimalsWithoutRounding(val: string, decimals: number){
let parts = val.toString().split(".");
return parseFloat(parts[0] + "." + parts[1].substring(0, decimals));
const parts = val.split(".");
return parts[0] + "." + parts[1].substring(0, decimals);
}

export function prettifyNumber({
Expand Down

0 comments on commit b0ca215

Please sign in to comment.