mirror of
https://github.com/danbulant/Portfolio
synced 2026-05-24 12:35:31 +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',
|
||||
credentials: 'include'
|
||||
});
|
||||
if (res.status != 200) {
|
||||
if (!res.ok) {
|
||||
throw new Error(await res.text());
|
||||
}
|
||||
return await res.json();
|
||||
|
|
|
|||
Loading…
Reference in a new issue