diff --git a/client/modules/user-menu/index.js b/client/modules/user-menu/index.js index 68be5c6a..94eaac8a 100644 --- a/client/modules/user-menu/index.js +++ b/client/modules/user-menu/index.js @@ -35,7 +35,7 @@ module.exports.show = show; module.exports.hide = hide; const getKey = (a) => a.split(' - ')[0]; -const beginWith = (a) => (b) => !b.indexOf(a); +const beginWith = (a) => (b) => a === getKey(b); const {CurrentInfo} = DOM;