diff --git a/web/src/api/APIClient.ts b/web/src/api/APIClient.ts index 4e48e5d..9787774 100644 --- a/web/src/api/APIClient.ts +++ b/web/src/api/APIClient.ts @@ -110,7 +110,7 @@ export async function HttpClient( // Resolve on success if (response.status >= 200 && response.status < 300) { - if (json) { + if (isJson) { return Promise.resolve(json as T); } else { return Promise.resolve(response as T);