Skip to content

Commit

Permalink
✨ Håndterer 204 respons
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasrognes committed May 22, 2024
1 parent b54cc70 commit 7cfe127
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils/api/simpleTokenXProxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export const simpleTokenXProxy = async <T>({
logInfo(`OK ${url}, status ${response.status}, callId ${navCallId}`);

if (response.status === 204) {
return 'request gikk fint' as T;
return {} as T;
}

const headers = response.headers.get('content-type');
Expand Down

0 comments on commit 7cfe127

Please sign in to comment.