Skip to content
This repository has been archived by the owner on Jun 23, 2023. It is now read-only.

Commit

Permalink
Corrected mistake in POST response handling
Browse files Browse the repository at this point in the history
  • Loading branch information
louneskmt committed Nov 6, 2020
1 parent 1f0b0db commit 3b4c4aa
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/store/modules/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 3b4c4aa

Please sign in to comment.