fix: spotify user not being edited in the store when saving settings

This commit is contained in:
Roberto Tonino
2021-08-11 11:43:30 +02:00
parent 4687db60cf
commit 6feb972bc6
2 changed files with 14 additions and 3 deletions

View File

@@ -107,6 +107,13 @@ const mutations = {
const clientMode = state.clientMode
Object.assign(state, getDefaultState())
state.clientMode = clientMode
},
SET_SPOTIFY_USER_ID(state, newSpotifyUserId) {
console.log('setting spotify user', { newSpotifyUserId })
state.spotifyUser = {
...state.spotifyUser,
id: newSpotifyUserId
}
}
}