Skip to content

Commit 37f22fe

Browse files
author
Pooya Parsa
committed
fix(store): better check for loggedIn
#19
1 parent 7362dc1 commit 37f22fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/templates/auth.store.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export default {
1313

1414
getters: {
1515
loggedIn (state) {
16-
return Boolean(state.user<% if (options.token.enabled) { %> || state.token<% } %>)
16+
return Boolean(state.user<% if (options.token.enabled) { %> && state.token<% } %>)
1717
}
1818
},
1919

0 commit comments

Comments
 (0)