fixed some type errors

This commit is contained in:
2023-04-15 22:15:25 +02:00
parent 1906ac1981
commit f825e56287

View File

@@ -1,9 +1,9 @@
export const formatCurrency = (
number: number,
currency: string,
locale: string | undefined = undefined
locale: string | null
): string => {
const CURRENCY_FORMATTER = new Intl.NumberFormat(locale, {
const CURRENCY_FORMATTER = new Intl.NumberFormat(locale || '', {
currency: currency,
style: 'currency'
})