Skip to content

Commit

Permalink
Debugf
Browse files Browse the repository at this point in the history
  • Loading branch information
hide-on-bush-x committed Sep 2, 2022
1 parent 752a557 commit a28c478
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/common/helpers/rest-calls/index.ts
Expand Up @@ -116,8 +116,9 @@ export const useMasaQuery = (
mode: 'cors',
body: JSON.stringify(body),
})
.then((res) => {
console.log("LAS RESPONSE", res);
.then(async (res) => {
//@ts-ignore
console.log("LAS RESPONSE", await res.body());
if (!res.ok) {
console.log('NOT OK');
}
Expand All @@ -127,7 +128,6 @@ export const useMasaQuery = (
return res.json();
})
.catch((err) => {
console.log('CALL ERROR', err);
throw new Error(err);
}),
{
Expand Down

0 comments on commit a28c478

Please sign in to comment.