diff --git a/src/store/modules/user.js b/src/store/modules/user.js index 76bb3494..69b5eb7f 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -83,14 +83,17 @@ const actions = { }, async updateSetting({ commit }, { setting, value }) { - const settings = await API.post( + const { data: settings } = await API.post( `${process.env.VUE_APP_MANAGER_API_URL}/v1/account/settings`, - { - setting, - value + { + setting, + value } ); - commit("setSettings", settings); + + if(settings) { + commit("setSettings", settings); + } }, async getSeed({ commit, state, dispatch }, plainTextPassword) {