diff --git a/resources/js/helpers/api.ts b/resources/js/helpers/api.ts index 9abfde2..24c3cea 100644 --- a/resources/js/helpers/api.ts +++ b/resources/js/helpers/api.ts @@ -139,7 +139,7 @@ export const api = { result.data = xhr.response; } - if (xhr.status === 200) { + if (xhr.status < 300) { resolve(result); } else { reject(result);