Skip to content

Commit b186790

Browse files
committed
fix logic
1 parent 09ebd0a commit b186790

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libs/OptionsListUtils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ function isCurrentUser(userDetails) {
294294

295295
// Initial check with currentUserLogin
296296
let result = currentUserLogin.toLowerCase() === userDetailsLogin.toLowerCase();
297-
const {loginList} = currentUser;
297+
const loginList = _.isEmpty(currentUser) ? [] : currentUser.loginList;
298298
let index = 0;
299299

300300
// Checking userDetailsLogin against to current user login options.

0 commit comments

Comments
 (0)