Permalink
Browse files

fix(store): skip only if token is not set. resolves #20.

  • Loading branch information...
pi0 committed Nov 18, 2017
1 parent e4bfd4e commit 23b12d57bfb94b2355c1c6c161c1302ed0bb6add
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/templates/auth.store.js
@@ -116,12 +116,12 @@ export default {
<% if (options.token.enabled) { %>
// Fetch and update latest token
dispatch('fetchToken')
<% } %>
// Skip if not loggedIn
if (!getters.loggedIn) {
// Skip if there is no token set
if (!state.token) {
return
}
<% } %>
// Try to get user profile
try {

0 comments on commit 23b12d5

Please sign in to comment.