diff --git a/packages/web/utils/number.ts b/packages/web/utils/number.ts index 51c1a51b98..a3e7dab955 100644 --- a/packages/web/utils/number.ts +++ b/packages/web/utils/number.ts @@ -108,8 +108,7 @@ export function fixDecimalCount( const split = value.split("."); const integerPart = split[0]; const fractionalPart = split[1] ? split[1].substring(0, decimalCount) : ""; - const result = - integerPart + (decimalCount > 0 ? "." + fractionalPart : ""); + const result = integerPart + (decimalCount > 0 ? "." + fractionalPart : ""); return result; }