Skip to content

Commit

Permalink
chore: improve logic for logging request responses
Browse files Browse the repository at this point in the history
  • Loading branch information
martinstark committed Apr 15, 2024
1 parent b3586ad commit a87d0f9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/api/handle-fetch-request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ export const handleFetchRequest = async <T>(
);
}

console.log("Request response:", text || json);
if (text || json) {
console.log("Request response:", text || json);
}

return text || json;
};

0 comments on commit a87d0f9

Please sign in to comment.