diff --git a/app/src/util/functions.ts b/app/src/util/functions.ts index 3733d5225..0812607f8 100644 --- a/app/src/util/functions.ts +++ b/app/src/util/functions.ts @@ -82,6 +82,7 @@ export const looseJsonParse = (text: string) => { export const objEquals = (a: any, b: any): boolean => { if (a === b) return true; + if (typeof a === "number" && isNaN(a) && typeof b === "number" && isNaN(b)) return true; if (a instanceof Date && b instanceof Date) return a.getTime() === b.getTime(); if (!a || !b || (typeof a !== "object" && typeof b !== "object")) return a === b; if (a.prototype !== b.prototype) return false;