mirror of
https://github.com/danbulant/Portfolio
synced 2026-05-24 12:35:31 +00:00
fix: change code check
This commit is contained in:
parent
0ec7868b83
commit
319223dbbc
1 changed files with 1 additions and 1 deletions
|
|
@ -20,7 +20,7 @@ export const apiFetchDetails = async (fetchSsr?: Fetch): Promise<CandidateData |
|
|||
const res = await fetchSsr(API_URL + '/candidate/details', { method: "GET", credentials: 'include' });
|
||||
const body = await res.text();
|
||||
console.log(body);
|
||||
if (res.status === 500) {
|
||||
if (res.status != 200) {
|
||||
return null;
|
||||
}
|
||||
return JSON.parse(body);
|
||||
|
|
|
|||
Loading…
Reference in a new issue