fix bug when auth token is undefined
This commit is contained in:
1 parent
0537c89cd7
commit
9874805832
1 file changed
+2
@@ -121,6 +121,8 @@ angular.module('storage').provider('localStorageService', [function localStorage
|
||||
|
||||
// Pull and parse value from internal storage, if present
|
||||
var data = storedItems[key];
|
||||
if (data === "undefined")
|
||||
return null;
|
||||
if (data)
|
||||
return JSON.parse(data);
|
||||
|
||||
|
||||
Reference in new issue
Block a user