Fix updating the user name in settings

This commit is contained in:
kolaente 2021-04-07 21:08:09 +02:00
parent 6d83bf6f58
commit 613f990ceb
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -25,6 +25,9 @@ export default {
}, },
setUserSettings(state, settings) { setUserSettings(state, settings) {
state.settings = settings state.settings = settings
const info = state.info !== null ? state.info : {}
info.name = settings.name
state.info = info
}, },
authenticated(state, authenticated) { authenticated(state, authenticated) {
state.authenticated = authenticated state.authenticated = authenticated