From 5d0e4e65d10076fd6bccc4d15a705cd3651910a6 Mon Sep 17 00:00:00 2001 From: Felipe Knorr Kuhn Date: Sat, 7 Mar 2026 12:14:29 -0800 Subject: [PATCH] Fix fiat pipe --- frontend/src/app/shared/pipes/fiat-currency.pipe.ts | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/frontend/src/app/shared/pipes/fiat-currency.pipe.ts b/frontend/src/app/shared/pipes/fiat-currency.pipe.ts index ffaef26d3..b3f3cb193 100644 --- a/frontend/src/app/shared/pipes/fiat-currency.pipe.ts +++ b/frontend/src/app/shared/pipes/fiat-currency.pipe.ts @@ -21,17 +21,7 @@ export class FiatCurrencyPipe implements PipeTransform { } transform(num: number, ...args: any[]): unknown { - const digits = args[0] || 1; const currency = args[1] || this.currency || 'USD'; - - if (Math.abs(num) >= 1000) { - // Check if decimals are exactly 0 - if (num % 1 === 0) { - return new Intl.NumberFormat(this.locale, { style: 'currency', currency, maximumFractionDigits: 0 }).format(num); - } - return new Intl.NumberFormat(this.locale, { style: 'currency', currency, minimumFractionDigits: 2, maximumFractionDigits: 2 }).format(num); - } else { - return new Intl.NumberFormat(this.locale, { style: 'currency', currency }).format(num); - } + return new Intl.NumberFormat(this.locale, { style: 'currency', currency }).format(num); } }