diff --git a/react/features/base/react/RouteRegistry.js b/react/features/base/react/RouteRegistry.js index f4e6d0939..86403af97 100644 --- a/react/features/base/react/RouteRegistry.js +++ b/react/features/base/react/RouteRegistry.js @@ -43,9 +43,12 @@ class RouteRegistry { return !a; } + const aKeys = Object.keys(a); + const bKeys = Object.keys(b); + return ( - Object.keys(a).every(key => a[key] === b[key]) - && /* symmetric */ this.areRoutesEqual(b, a)); + aKeys.length === bKeys.length /* symmetric */ + && aKeys.every(key => a[key] === b[key])); } /**