Skip to content

Commit

Permalink
Refactor: Cleanup unused code and comments in sendComment.js
Browse files Browse the repository at this point in the history
  • Loading branch information
judemont committed Aug 2, 2024
1 parent 8b6fea4 commit d56e505
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions scripts/sendComment.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@ async function sendComment(content, smurf_ID) {
smurfsId: smurf_ID,
}),
});
let responseJson = await response.json();
// if (responseJson.info == "vote updated") {
// alert("Votre vote a été mis a jour");
// }
if (responseJson.error == "banned") {
window.location.reload();
}
// let responseJson = await response.json();


// if (responseJson.error == "banned") {
// window.location.reload();
// }
}

0 comments on commit d56e505

Please sign in to comment.