Update existing currentusers if there is one.

This commit is contained in:
Roger Braun 2017-04-16 16:05:13 +02:00
parent 37c10be5e2
commit dede7f7f2f

View file

@ -24,7 +24,7 @@ export const mutations = {
set(user, 'muted', muted)
},
setCurrentUser (state, user) {
state.currentUser = user
state.currentUser = merge(state.currentUser || {}, user)
},
beginLogin (state) {
state.loggingIn = true