From b0ca21507ab9ee92d9e090c19c1beed1f45505a8 Mon Sep 17 00:00:00 2001 From: sendra Date: Wed, 17 Jul 2024 18:44:16 +0200 Subject: [PATCH] fix: no need to return number --- src/govv3/utils/markdownUtils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/govv3/utils/markdownUtils.ts b/src/govv3/utils/markdownUtils.ts index 5a2b327..c66d5ad 100644 --- a/src/govv3/utils/markdownUtils.ts +++ b/src/govv3/utils/markdownUtils.ts @@ -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({