Skip to content

Commit

Permalink
Extended periods, grammar fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Faisal N <[email protected]>
  • Loading branch information
faisalnjs authored Jan 21, 2025
1 parent cdc6257 commit 762d95e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/clicker/clicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,15 @@ document.getElementById("submit-button").addEventListener("click", () => {
if (question && answer) {
// Check if code matches current period
const matchesCurrentPeriod =
parseInt(storage.get("code").slice(0, 1)) === getPeriod() + 1;
parseInt(storage.get("code").slice(0, 1)) === getExtendedPeriod() + 1;
if (!matchesCurrentPeriod) {
ui.prompt("Are you sure you want to submit?", "Your seat code isn't for this period!", [
{
text: "Cancel",
close: true,
},
{
text: "Submit Anyways",
text: "Submit Anyway",
close: true,
onclick: submit,
},
Expand Down Expand Up @@ -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;
const matchesCurrentPeriod = parseInt(storage.get("code").slice(0, 1)) === getExtendedPeriod() + 1;
if (!matchesCurrentPeriod) {
ui.prompt("Mismatched Seat Code", "Your current seat code does not match the class period you are currently in. Responses will not be recorded correctly. Are you sure you would like to continue?", [
{
Expand Down

0 comments on commit 762d95e

Please sign in to comment.