wip4
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user