mirror of
https://github.com/danbulant/Portfolio
synced 2026-06-07 00:30:11 +00:00
refactor: code cleanup
This commit is contained in:
parent
7e3740f436
commit
d224159372
1 changed files with 1 additions and 1 deletions
|
|
@ -26,7 +26,7 @@ export const apiFetchDetails = async (fetchSsr?: Fetch): Promise<CandidateData>
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
credentials: 'include'
|
credentials: 'include'
|
||||||
});
|
});
|
||||||
if (res.status != 200) {
|
if (!res.ok) {
|
||||||
throw new Error(await res.text());
|
throw new Error(await res.text());
|
||||||
}
|
}
|
||||||
return await res.json();
|
return await res.json();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue