From bc6f65dc9afa29fbb94038b1cfd5cbee2d87719c Mon Sep 17 00:00:00 2001 From: ertopogo Date: Sun, 1 Feb 2026 02:53:13 +0100 Subject: feat: mise à jour storefront + checkout MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- storefront/lib/format.js | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'storefront/lib/format.js') diff --git a/storefront/lib/format.js b/storefront/lib/format.js index 2f44c2e..9e92a8b 100644 --- a/storefront/lib/format.js +++ b/storefront/lib/format.js @@ -1,11 +1,11 @@ -export const formatAmount = (amount, currencyCode = "EUR") => { - if (typeof amount !== "number") { - return "" - } - - const normalizedCurrency = currencyCode.toUpperCase() - return new Intl.NumberFormat("fr-FR", { - style: "currency", - currency: normalizedCurrency, - }).format(amount / 100) -} +export const formatAmount = (amount, currencyCode = "EUR") => { + if (typeof amount !== "number") { + return "" + } + + const normalizedCurrency = currencyCode.toUpperCase() + return new Intl.NumberFormat("fr-FR", { + style: "currency", + currency: normalizedCurrency, + }).format(amount / 100) +} -- cgit v1.2.3