From 638384b96df6d06398e9abb0e3996d6c3fd7fdce Mon Sep 17 00:00:00 2001 From: Kaosiso Ezealigo Date: Thu, 9 May 2024 09:15:11 +0100 Subject: [PATCH] removed currency formatter conditional --- agenta-web/src/lib/helpers/formatters.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/agenta-web/src/lib/helpers/formatters.ts b/agenta-web/src/lib/helpers/formatters.ts index 8a1ea86f8a..6dbe14c374 100644 --- a/agenta-web/src/lib/helpers/formatters.ts +++ b/agenta-web/src/lib/helpers/formatters.ts @@ -13,14 +13,7 @@ export const formatNumber = (value = 0) => { } export const formatCurrency = (value: number) => { - // Check if the value is zero - if (value === 0) { - // If the value is zero, return it as is - return value - } else { - // If the value is not zero, format it using the international currency format - return intlCurrency.format(value) - } + return intlCurrency.format(value) } export const formatLatency = (value = 0) => {