fixed some type errors
This commit is contained in:
@@ -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'
|
||||
})
|
||||
|
Reference in New Issue
Block a user