From 043e0fb819bb4a850ae7797acedb2cc7df295675 Mon Sep 17 00:00:00 2001 From: Matteo Pagliazzi Date: Thu, 25 Apr 2019 22:49:58 +0200 Subject: [PATCH] fix #9514: await user update client sid --- website/client/store/actions/user.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/website/client/store/actions/user.js b/website/client/store/actions/user.js index fe6094fcc9..c8edffe287 100644 --- a/website/client/store/actions/user.js +++ b/website/client/store/actions/user.js @@ -51,10 +51,8 @@ export async function set (store, changes) { } } - axios.put('/api/v4/user', changes); - // TODO - // .then((res) => console.log('set', res)) - // .catch((err) => console.error('set', err)); + let response = await axios.put('/api/v4/user', changes); + return response.data.data; } export async function sleep (store) {