Skip to content

Commit

Permalink
Show mismatched code popup
Browse files Browse the repository at this point in the history
Signed-off-by: Faisal N <contact@faisaln.com>
faisalnjs authored Jan 21, 2025
1 parent 97e3937 commit a4e2faa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/clicker/clicker.js
Original file line number Diff line number Diff line change
@@ -223,7 +223,7 @@ function updateCode() {
element.innerHTML = storage.get("code");
});
document.title = `Virtual Clicker (${storage.get("code")})`;
const matchesCurrentPeriod = parseInt(storage.get("code").slice(0, 1)) === getPeriod() + 1 || true;
const matchesCurrentPeriod = parseInt(storage.get("code").slice(0, 1)) === getPeriod() + 1;
if (!matchesCurrentPeriod) {
ui.prompt("Mismatched Seat Code", "Did you mean to change your seat code? The seat code you entered does not match the class period you are currently in", [
{

0 comments on commit a4e2faa

Please sign in to comment.