diff --git a/frontend/src/lib/@api/candidate.ts b/frontend/src/lib/@api/candidate.ts index 6e5427d..3515c41 100644 --- a/frontend/src/lib/@api/candidate.ts +++ b/frontend/src/lib/@api/candidate.ts @@ -26,7 +26,7 @@ export const apiFetchDetails = async (fetchSsr?: Fetch): Promise method: 'GET', credentials: 'include' }); - if (res.status != 200) { + if (!res.ok) { throw new Error(await res.text()); } return await res.json();