We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 48e7f3f commit 2be7f95Copy full SHA for 2be7f95
assets/js/game.js
@@ -117,13 +117,13 @@ sock.on("getProblem", data => {
117
});
118
//別人回答
119
sock.on("otheranswer", data => {
120
- if (data.res.correct) {
+ if (data.correct) {
121
changeColor("other", "right");
122
}
123
else {
124
changeColor("other", "error");
125
126
- otherScore += data.res.score;
+ otherScore += data.score;
127
$("#otherscore").text(otherScore);
128
129
0 commit comments