Skip to content

Commit

Permalink
fix(store): better check for loggedIn
Browse files Browse the repository at this point in the history
  • Loading branch information
Pooya Parsa committed Nov 16, 2017
1 parent 7362dc1 commit 37f22fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/templates/auth.store.js
Expand Up @@ -13,7 +13,7 @@ export default {

getters: {
loggedIn (state) {
return Boolean(state.user<% if (options.token.enabled) { %> || state.token<% } %>)
return Boolean(state.user<% if (options.token.enabled) { %> && state.token<% } %>)
}
},

Expand Down

0 comments on commit 37f22fe

Please sign in to comment.