diff --git a/src/plugins/i18n.ts b/src/plugins/i18n.ts index bcc1b7a7870..496031cdefb 100644 --- a/src/plugins/i18n.ts +++ b/src/plugins/i18n.ts @@ -109,7 +109,7 @@ async function initFonts(language: string | undefined) { * @returns a money formatted string */ function i18nMoneyFormatter(amount: any): string { - if (typeof amount !== "number") { + if (isNaN(Number(amount))) { console.warn(`i18nMoneyFormatter: value "${amount}" is not a number!`); }