From f5907cabc5ed5aff2f885b3af56b58753d667113 Mon Sep 17 00:00:00 2001 From: Guillermo Fernandez Date: Thu, 23 Jan 2025 21:58:35 +0100 Subject: [PATCH] Removed options variable and passed argument directly to function --- libs/common/src/lib/helper.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/libs/common/src/lib/helper.ts b/libs/common/src/lib/helper.ts index 33e5293d2..bd0c74189 100644 --- a/libs/common/src/lib/helper.ts +++ b/libs/common/src/lib/helper.ts @@ -251,11 +251,9 @@ export function getNumberFormatDecimal(aLocale?: string) { } export function getNumberFormatGroup(aLocale = getLocale()) { - const formatOptions = { useGrouping: true }; - const formatObject = new Intl.NumberFormat( - aLocale, - formatOptions - ).formatToParts(9999.99); + const formatObject = new Intl.NumberFormat(aLocale, { + useGrouping: true + }).formatToParts(9999.99); return formatObject.find((object) => { return object.type === 'group';