Skip to content

Commit 65a8ae1

Browse files
arthurdennerCompuIves
authored andcommitted
fix(getters): Do not use store.jwt to compute hasLogIn (codesandbox#1867)
1 parent c1e1afd commit 65a8ae1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

packages/app/src/app/store/getters.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import store from 'store/dist/store.modern';
2-
31
export function isPatron() {
42
return Boolean(
53
this.user && this.user.subscription && this.user.subscription.since
@@ -11,5 +9,5 @@ export function isLoggedIn() {
119
}
1210

1311
export function hasLogIn() {
14-
return !!this.jwt || !!store.get('jwt');
12+
return !!this.jwt;
1513
}

0 commit comments

Comments
 (0)