From f3b9c83e55b10415458324ee03a11cb4c2a9e8d6 Mon Sep 17 00:00:00 2001 From: June Date: Fri, 11 Aug 2023 18:57:52 +0200 Subject: [PATCH] remove unused var, change from kr to SEK --- components/price.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/components/price.tsx b/components/price.tsx index 19dd73b77..fe1af70ce 100644 --- a/components/price.tsx +++ b/components/price.tsx @@ -1,8 +1,7 @@ const Price = ({ amount, className, - currencyCode = 'SEK', - currencyCodeClassName + currencyCode = 'SEK' }: { amount: string; className?: string; @@ -13,7 +12,7 @@ const Price = ({ {`${new Intl.NumberFormat('sv-SE', { style: 'currency', currency: currencyCode, - currencyDisplay: 'narrowSymbol', + currencyDisplay: 'code', minimumFractionDigits: 0, maximumFractionDigits: 0 }).format(parseFloat(amount))}`}