Skip to content
This repository was archived by the owner on Jun 30, 2024. It is now read-only.

Commit 7f6393c

Browse files
committed
fix: do not let count go above 2
1 parent fb4b57f commit 7f6393c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

static/js/peer.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ function connect(event) {
9494
window.mcList[currentQuestion].enableInteraction();
9595
if (typeof studentVoteCount !== "undefined") {
9696
studentVoteCount += 1;
97+
if (studentVoteCount > 2) studentVoteCount = 2;
9798
}
9899
messarea = document.getElementById("imessage");
99100
messarea.innerHTML = `<h3>Time to make your 2nd vote</h3>`;

0 commit comments

Comments
 (0)