Skip to content

Commit dd46ee1

Browse files
committed
equal fix
1 parent 678c923 commit dd46ee1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/applyPatch.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ function assertDatesEqual(date1, date2) {
101101
}
102102

103103
function assertDeepEqual(a, b) {
104-
if (JSON.stringify(a) === JSON.stringify(b))
104+
if (JSON.stringify(a) !== JSON.stringify(b))
105105
throw new Error('A, b are not equal');
106106
}
107107

src/validateDeleteConflict.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ function assertDatesEqual(date1, date2) {
8787
}
8888

8989
function assertDeepEqual(a, b) {
90-
if (JSON.stringify(a) === JSON.stringify(b))
90+
if (JSON.stringify(a) !== JSON.stringify(b))
9191
throw new Error('A, b are not equal');
9292
}
9393

0 commit comments

Comments
 (0)