Skip to content

Commit

Permalink
fix(ui): return correct isUserCaster() value (#2864)
Browse files Browse the repository at this point in the history
  • Loading branch information
sogehige committed Oct 24, 2019
1 parent 6415bc1 commit 41b498b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/panel/helpers/isUserLoggedIn.ts
Expand Up @@ -69,5 +69,5 @@ export const isUserCaster = function () {
if (localStorage.getItem('userType') !== 'admin') {
window.location.replace(window.location.origin + '/login#error=must+be+caster');
};
return localStorage.getItem('userType') !== 'admin';
return localStorage.getItem('userType') === 'admin';
};

0 comments on commit 41b498b

Please sign in to comment.