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 = ( export const formatCurrency = (
number: number, number: number,
currency: string, currency: string,
locale: string | undefined = undefined locale: string | null
): string => { ): string => {
const CURRENCY_FORMATTER = new Intl.NumberFormat(locale, { const CURRENCY_FORMATTER = new Intl.NumberFormat(locale || '', {
currency: currency, currency: currency,
style: 'currency' style: 'currency'
}) })