From f8db297e87e851498f6ea0f85b48c71ec51712d9 Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Fri, 8 Apr 2022 15:20:16 +0200 Subject: 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 --- src/service/AccountService.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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) { -- cgit v1.2.3