Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

Commit

Permalink
Revert "remove logs"
Browse files Browse the repository at this point in the history
This reverts commit 510f715.
  • Loading branch information
webergnr committed Jul 3, 2023
1 parent 248ad64 commit bf4120b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/hooks/useTask.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const useTask = () => {
notes: task.notes,
alwaysPrivate: true,
};
console.log("### => [POST] /tasks", data);

const [createdTask, error] = await axiosPromiseData(
fetcher("/tasks", {
Expand All @@ -27,6 +28,7 @@ const useTask = () => {
);
if (!createTask && error) throw error;

console.log("### => [POST] /tasks", createdTask);
return createdTask;
} catch (error) {
console.error("Error while creating task", error);
Expand Down

0 comments on commit bf4120b

Please sign in to comment.