Skip to content

Commit

Permalink
Fix handling of account update API response
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Wurst <[email protected]>
  • Loading branch information
ChristophWurst committed Oct 21, 2022
1 parent c6049ac commit ae2728a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Controller/AccountsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ public function patchAccount(int $id,
$dbAccount->setSignatureAboveQuote($signatureAboveQuote);
}
return new JSONResponse(
$this->accountService->save($dbAccount)->toJson()
$this->accountService->save($dbAccount)
);
}

Expand Down
2 changes: 1 addition & 1 deletion src/service/AccountService.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const update = (data) => {

return axios
.put(url, data)
.then((resp) => resp.data)
.then((resp) => resp.data.data)
.then(fixAccountId)
.catch((e) => {
if (e.response && e.response.status === 400) {
Expand Down

0 comments on commit ae2728a

Please sign in to comment.