From eedd88169d66ad1c79ff1c7fcd1bf2fa633b5bb8 Mon Sep 17 00:00:00 2001 From: Zhang Ziqing Date: Thu, 20 Oct 2022 23:36:52 +0800 Subject: [PATCH] [offers][fix] display currency --- apps/portal/src/utils/offers/currency/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/portal/src/utils/offers/currency/index.tsx b/apps/portal/src/utils/offers/currency/index.tsx index c2cfcb05..8afe5860 100644 --- a/apps/portal/src/utils/offers/currency/index.tsx +++ b/apps/portal/src/utils/offers/currency/index.tsx @@ -10,5 +10,5 @@ export function convertCurrencyToString({ currency, value }: Money) { minimumFractionDigits: 0, // (causes 2500.99 to be printed as $2,501) style: 'currency', }); - return `${formatter.format(10000)}`; /* $2,500.00 */ + return `${formatter.format(value)}`; }