diff --git a/lib/api/makeRequest.ts b/lib/api/makeRequest.ts index d507240..14bd110 100644 --- a/lib/api/makeRequest.ts +++ b/lib/api/makeRequest.ts @@ -24,7 +24,7 @@ export async function makeRequest({ withCredentials?: boolean; }): Promise { const headers: Record = {}; - if (useToken) headers["Authorization"] = getAuthToken() ? "" : `Bearer ${getAuthToken()}`; + if (useToken) headers["Authorization"] = getAuthToken() ? `Bearer ${getAuthToken()}` : ""; if (contentType) headers["Content-Type"] = "application/json"; try {