From 3f21bcadce5d4d6f31296f1813020fe4dd3e2132 Mon Sep 17 00:00:00 2001 From: Jyoti Puri Date: Thu, 25 Jul 2024 18:20:40 +0530 Subject: [PATCH] update --- .../confirmations/components/simulation-details/formatAmount.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/pages/confirmations/components/simulation-details/formatAmount.ts b/ui/pages/confirmations/components/simulation-details/formatAmount.ts index 30436b90dbd1..98d7d75cbd47 100644 --- a/ui/pages/confirmations/components/simulation-details/formatAmount.ts +++ b/ui/pages/confirmations/components/simulation-details/formatAmount.ts @@ -87,7 +87,7 @@ export function formatAmount(locale: string, amount: BigNumber): string { // string is valid parameter for format function // for some reason it gives TS issue // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/format#number - amount.toFixed(maximumFractionDigits) as unknown as number, + amount.toFixed(0) as unknown as number, ); }