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