Skip to content

Commit

Permalink
status=available typo fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
sunilk429 committed Nov 17, 2024
1 parent 5a7eeb8 commit 3e23bad
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions task/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ const taskLevelDiv = document
if (isDev && taskLevelDiv) {
taskLevelDiv.style.display = 'none';
}
console.log('hehehe');
const category = document.getElementById('category');

category.addEventListener('change', async () => {
Expand Down Expand Up @@ -217,7 +216,7 @@ taskForm.onsubmit = async (e) => {
delete dataToBeSent.endsOn;
}

if (status === 'AVIALABLE') {
if (status === 'AVAILABLE') {
delete dataToBeSent.endsOn;
}
if (isDev) {
Expand Down Expand Up @@ -265,7 +264,6 @@ taskForm.onsubmit = async (e) => {
}

try {
console.log(dataToBeSent);
const response = await fetch(`${API_BASE_URL}/tasks?userStatusFlag=true`, {
method: 'POST',
credentials: 'include',
Expand Down

0 comments on commit 3e23bad

Please sign in to comment.