some fixes

This commit is contained in:
Alex
2023-05-30 20:00:41 +01:00
parent d2358c399d
commit 8380858a82
2 changed files with 44 additions and 44 deletions

View File

@@ -46,7 +46,7 @@ export function fetchAnswerApi(
if (response.ok) {
return response.json();
} else {
Promise.reject(response);
return Promise.reject(new Error(response.statusText));
}
})
.then((data) => {