another bug fix v0.0.10
This commit is contained in:
parent
341ac14839
commit
a99e82dd4a
@ -110,9 +110,7 @@ const updateTask = (userToken, taskTitle, taskDescription, completedStatus) => {
|
||||
"is_completed": completedStatus
|
||||
});
|
||||
|
||||
console.log(body);
|
||||
console.log(taskDescription);
|
||||
const res = fetch(`${url}/user/update-tasks`, {
|
||||
const res = fetch(`${localhostUrl}/user/update-tasks`, {
|
||||
method: "PATCH",
|
||||
headers: {Authorization: `Bearer ${userToken}`, "Content-type": "application/json"},
|
||||
body: body
|
||||
@ -121,4 +119,4 @@ const updateTask = (userToken, taskTitle, taskDescription, completedStatus) => {
|
||||
return res;
|
||||
}
|
||||
|
||||
loadUserTasks();
|
||||
loadUserTasks(token);
|
Loading…
Reference in New Issue
Block a user