mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-24 00:09:31 +02:00
fix wrongful console.warn on i18n money formatter
This commit is contained in:
parent
18ef10c644
commit
a9ec1d29e5
@ -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!`);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user