You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-11-26 17:03:12 +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++) {
|
||||
if (deepCompare(x[i], y[i])) {
|
||||
if (!deepCompare(x[i], y[i])) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user