Commit 8566ff1d84fe554c387310417a68dcdecbef592c
1 parent
694babcb
Wrong variable in function
Showing
1 changed file
with
1 additions
and
1 deletions
400-SOURCECODE/AIAHTML5.Web/app/controllers/HomeController.js
@@ -138,7 +138,7 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic | @@ -138,7 +138,7 @@ function ($rootScope, Modules, $log, $location, $timeout, DataService, Authentic | ||
138 | var currentUserDetails = localStorage.getItem('loggedInUserDetails'); | 138 | var currentUserDetails = localStorage.getItem('loggedInUserDetails'); |
139 | if (currentUserDetails) { | 139 | if (currentUserDetails) { |
140 | try { | 140 | try { |
141 | - var userInfo = JSON.parse(storedUser); | 141 | + var userInfo = JSON.parse(currentUserDetails); |
142 | 142 | ||
143 | if (userInfo.loginId != undefined || userInfo.loginId != "" || userInfo.loginId != null) { | 143 | if (userInfo.loginId != undefined || userInfo.loginId != "" || userInfo.loginId != null) { |
144 | $rootScope.isVisibleLogin = false; | 144 | $rootScope.isVisibleLogin = false; |