diff --git a/libs/common/src/lib/helper.ts b/libs/common/src/lib/helper.ts index db320c7cb..ce7fca518 100644 --- a/libs/common/src/lib/helper.ts +++ b/libs/common/src/lib/helper.ts @@ -264,7 +264,7 @@ export function getCountryName({ }: { code: string; locale?: string; -}) { +}): string { try { return new Intl.DisplayNames([locale], { type: 'region' }).of(code) ?? code; } catch {