Skip to content

Commit

Permalink
Error log
Browse files Browse the repository at this point in the history
  • Loading branch information
hide-on-bush-x committed Sep 2, 2022
1 parent 446a236 commit 7c965ea
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/common/helpers/rest-calls/index.ts
Expand Up @@ -118,6 +118,7 @@ export const useMasaQuery = (
})
.then((res) => res.json())
.catch((err) => {
console.log('CALL ERROR', err);
throw new Error(err);
}),
{
Expand Down Expand Up @@ -166,7 +167,14 @@ export const useMasaMutation = (
mode: 'cors',
body: JSON.stringify(newBody ? newBody : body),
}).then((res) => res.json()),
{ ...settings, enabled: !token ? false : !!settings?.enabled }
{
...settings,
enabled: process.env.REACT_APP_SOULBOUND
? !!settings?.enabled
: !token
? false
: !!settings?.enabled,
}
);

return query;
Expand Down

0 comments on commit 7c965ea

Please sign in to comment.