This commit is contained in:
2025-07-10 14:45:41 +03:00
parent 6368a5b5ff
commit 7f2c6f2374

View File

@@ -14,7 +14,7 @@ export function formatCurrency(params: {
locale: string;
value: string | number;
}) {
const [lang, region] = params.locale.split('-');
const [lang, region] = (params.locale ?? 'et-ET').split('-');
return new Intl.NumberFormat(region ?? lang, {
style: 'currency',