update object equality check

This commit is contained in:
Nate Kelley 2025-04-10 15:06:27 -06:00
parent de99ea1742
commit 4548b07cfe
No known key found for this signature in database
GPG Key ID: FD90372AB8D98B4F
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ export const compareObjectsByKeys = <K extends string>(
// Handle other objects
if (typeof val1 === 'object' && typeof val2 === 'object') {
const isWasEqual = isEqual(JSON.stringify(val1), JSON.stringify(val2));
const isWasEqual = isEqual(val1, val2) || isEqual(JSON.stringify(val1), JSON.stringify(val2));
return isWasEqual;
}