mirror of
https://github.com/danbulant/Portfolio
synced 2026-06-07 00:30:11 +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 res = await fetchSsr(API_URL + '/candidate/details', { method: "GET", credentials: 'include' });
|
||||||
const body = await res.text();
|
const body = await res.text();
|
||||||
console.log(body);
|
console.log(body);
|
||||||
if (res.status === 500) {
|
if (res.status != 200) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
return JSON.parse(body);
|
return JSON.parse(body);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue