Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/lib/src/utils/compare.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ type Equalable = {
const propA = objA[key];
const propB = objB[key];
// If the object has an equality operator, use this
if(hasEqualsMethod(propA)) {
return propA.equals(propB);
if (hasEqualsMethod(propA) && !propA.equals(propB)) {
return false
} else if (propA !== propB) {
return false;
}
Expand Down