diff --git a/frontend/src/store/account.js b/frontend/src/store/account.js index da82726f09..530060bcd7 100644 --- a/frontend/src/store/account.js +++ b/frontend/src/store/account.js @@ -124,6 +124,7 @@ const mutations = { state.user = null state.teams = [] state.team = null + state.redirectUrlAfterLogin = null }, setUser (state, user) { state.user = user @@ -302,8 +303,8 @@ const actions = { } } }, - async logout (state) { - state.commit('logout') + async logout ({ commit }) { + commit('logout') userApi.logout() .catch(_ => {}) .finally(() => {