Skip to content

Commit

Permalink
remove Uncaught SyntaxError in Json.parse
Browse files Browse the repository at this point in the history
  • Loading branch information
mahdiyeh-deriv committed Aug 16, 2022
1 parent 2d75326 commit d337d0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/App/initStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const setStorageEvents = root_store => {
break;
}
case 'active_loginid':
if (!JSON.parse(localStorage.getItem('active_loginid'))) {
if (localStorage.getItem('active_loginid') === 'null') {
root_store.client.logout();
}
if (document.hidden) {
Expand Down

0 comments on commit d337d0e

Please sign in to comment.