Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
judemont committed May 15, 2024
1 parent 1814e20 commit c427f7d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/rating.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ async function sendVotes(profId, teachingQuality, kindness, authority, humor) {
humor: humor,
}),
});

if (response.json().info == "vote updated") {
let responseJson = await response.json();
console.log(responseJson);
if (responseJson.info == "vote updated") {
alert("Votre vote a été mis a jour");
}
}

0 comments on commit c427f7d

Please sign in to comment.