Commit 8566ff1d84fe554c387310417a68dcdecbef592c

Authored by Amrita Vishnoi
1 parent 694babcb

Wrong variable in function

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;