From 4bbf2587d076261f7395b65e068b25ffcd0ebd27 Mon Sep 17 00:00:00 2001 From: nhestrompia Date: Mon, 28 Aug 2023 13:05:42 +0300 Subject: [PATCH] fix: fraction digits --- web/src/utils/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/utils/index.ts b/web/src/utils/index.ts index 938f2de46..0d37380be 100644 --- a/web/src/utils/index.ts +++ b/web/src/utils/index.ts @@ -5,7 +5,7 @@ export const isUndefined = (maybeObject: any): maybeObject is undefined => typeo export const formatUnitsWei = (value: bigint) => formatUnits(value, 18); -export const formatPNK = (value: bigint, fractionDigits = 4) => +export const formatPNK = (value: bigint, fractionDigits = 0) => commify(Number(formatUnitsWei(value)).toFixed(fractionDigits)); export const formatETH = (value: bigint, fractionDigits = 4) =>