Skip to content

Commit

Permalink
Fix syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
hareku committed May 13, 2017
1 parent 4a843b6 commit 6ceb476
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/auth/store.js
Expand Up @@ -109,8 +109,8 @@ function AuthStore (opts) {
// Unload user profile
ctx.commit('setUser', null)

// Create logout endpoint
const endpoint = endpoint + appendToken ? `/${ctx.state.token}` : ''
// Append token
if (appendToken) endpoint = endpoint + `/${ctx.state.token}`

// Server side logout
return $delete(endpoint).then(() => {
Expand Down

0 comments on commit 6ceb476

Please sign in to comment.