diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2022-04-08 16:20:16 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2022-04-08 16:20:16 +0300 |
commit | f8db297e87e851498f6ea0f85b48c71ec51712d9 (patch) | |
tree | 8b1427a78dd35be2d9611d212fab7926c8611666 /src | |
parent | a30b96ec17f9103e7544100a5a5e5c7bcf51a112 (diff) |
Fix mailbox fetching after creating an account
The response structure changed and we have to access the account object
from a nested `data` property now.
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'src')
-rw-r--r-- | src/service/AccountService.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/service/AccountService.js b/src/service/AccountService.js index cbd8b12f9..d9c1716cd 100644 --- a/src/service/AccountService.js +++ b/src/service/AccountService.js @@ -13,7 +13,7 @@ export const create = (data) => { return axios .post(url, data) - .then((resp) => resp.data) + .then((resp) => resp.data.data) .then(fixAccountId) .catch((e) => { if (e.response && e.response.status === 400) { |