From 3f49ba836517e34eeb8bc139e88cce51d5d0ede7 Mon Sep 17 00:00:00 2001 From: Alex Manochio Date: Fri, 10 Apr 2026 16:21:15 -0400 Subject: [PATCH 1/2] Apply suggested fix to math/grade4/division-remainders.html from Copilot Autofix Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> --- math/grade4/division-remainders.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/math/grade4/division-remainders.html b/math/grade4/division-remainders.html index 0792c3e..192b795 100644 --- a/math/grade4/division-remainders.html +++ b/math/grade4/division-remainders.html @@ -244,6 +244,12 @@

Remainder Master!

const userR = parseInt(document.getElementById('r-input').value); const fb = document.getElementById('feedback'); + if (Number.isNaN(userQ) || Number.isNaN(userR)) { + fb.style.color = "#d63031"; + fb.textContent = "Please enter numbers for both quotient and remainder."; + return; + } + if(userQ === currentQ.q && userR === currentQ.r) { fb.style.color = "var(--success)"; fb.textContent = "Perfectly balanced! ✔️"; From 270afedc1d04aaa86d03b24b3d20232fc9ebdad0 Mon Sep 17 00:00:00 2001 From: Alex Manochio Date: Fri, 10 Apr 2026 16:21:16 -0400 Subject: [PATCH 2/2] Apply suggested fix to math/grade4/division-remainders.html from Copilot Autofix Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> --- math/grade4/division-remainders.html | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/math/grade4/division-remainders.html b/math/grade4/division-remainders.html index 192b795..1431d25 100644 --- a/math/grade4/division-remainders.html +++ b/math/grade4/division-remainders.html @@ -161,7 +161,21 @@

Remainder Master!

let currentQ = { q: 0, r: 0 }; auth.onAuthStateChanged(user => { - if (user) { currentUser = user; syncProgress(); } + if (user) { + currentUser = user; + syncProgress(); + } else { + currentUser = null; + stepsCompleted = { + step_0: false, + step_1: false, + step_2: false, + step_3: false, + step_4: false, + step_5: false + }; + updateSidebar(); + } }); async function syncProgress() {