From 613f990cebd65343f01e933b353f9f15c1d9ef15 Mon Sep 17 00:00:00 2001 From: kolaente Date: Wed, 7 Apr 2021 21:08:09 +0200 Subject: [PATCH] Fix updating the user name in settings --- src/store/modules/auth.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/store/modules/auth.js b/src/store/modules/auth.js index 810dcaab..91c38d63 100644 --- a/src/store/modules/auth.js +++ b/src/store/modules/auth.js @@ -25,6 +25,9 @@ export default { }, setUserSettings(state, settings) { state.settings = settings + const info = state.info !== null ? state.info : {} + info.name = settings.name + state.info = info }, authenticated(state, authenticated) { state.authenticated = authenticated