From ac46aba6750df38a2421531f11484ccd4ebd13d3 Mon Sep 17 00:00:00 2001 From: Nick Date: Mon, 11 Nov 2024 12:56:10 +0330 Subject: [PATCH] refactor: use decimal directly --- .../extension-polkagate/src/components/FormatPrice.tsx | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/packages/extension-polkagate/src/components/FormatPrice.tsx b/packages/extension-polkagate/src/components/FormatPrice.tsx index 12ccf8ad9..9d9c25745 100644 --- a/packages/extension-polkagate/src/components/FormatPrice.tsx +++ b/packages/extension-polkagate/src/components/FormatPrice.tsx @@ -79,12 +79,6 @@ function FormatPrice ({ amount, commify, decimalPoint = 2, decimals, fontSize, f return decimalPoint; }, [currency?.code, decimalPoint]); - const TotalAsNumber = useMemo(() => { - const temp = fixFloatingPoint(total as number, _decimalPoint); - - return parseFloat(temp); - }, [_decimalPoint, total]); - return ( {withCountUp ? : <>