remove console logs to avoid mess in the console

This commit is contained in:
2022-03-09 20:07:41 +01:00
parent d6933fce35
commit d5501bcfbd
3 changed files with 1 additions and 8 deletions

View File

@@ -11,19 +11,16 @@ const makeFetch = (method, url, body) => {
})
.then(response => {
if (response.ok) {
console.log('200 error')
return response.json();
}
if (response.status === 422) {
console.log('422 error')
return response.json().then(response => {
throw ValidationException(response)
});
}
if (response.status === 403) {
console.log('403 error')
throw AccessException(response);
}