mirror of https://github.com/buster-so/buster.git
update object equality check
This commit is contained in:
parent
de99ea1742
commit
4548b07cfe
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue