household address: chain API call

This commit is contained in:
nobohan
2021-06-10 10:06:23 +02:00
parent e14a125bf3
commit 1b36d9b1ab
4 changed files with 22 additions and 41 deletions

View File

@@ -91,7 +91,7 @@ const postAddress = (address) => {
* @body Object - dictionary with changes to post
*/
const patchAddress = (id, body) => {
console.log('body', body);
const url = `/api/1.0/main/address/${id}.json`;
return fetch(url, {
method: 'PATCH',