You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-28 05:03:59 +03:00
fix failure of deepCompare to compare arrays
what a difference a character can make
This commit is contained in:
@@ -301,7 +301,7 @@ var deepCompare = module.exports.deepCompare = function(x, y) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (var i = 0; i < x.length; i++) {
|
for (var i = 0; i < x.length; i++) {
|
||||||
if (deepCompare(x[i], y[i])) {
|
if (!deepCompare(x[i], y[i])) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user