From b11c1ae20dc4978d9a0d65126aea29a8268af9b7 Mon Sep 17 00:00:00 2001 From: altaf-creator Date: Wed, 3 Dec 2025 17:53:33 +0700 Subject: fixes (i hope) frontend --- frontend/start.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'frontend/start.js') diff --git a/frontend/start.js b/frontend/start.js index b290bc0..c36dc40 100644 --- a/frontend/start.js +++ b/frontend/start.js @@ -38,7 +38,7 @@ async function requestPermission() { const existingPanel = document.getElementById("existing-laundry-panel"); const existingText = document.getElementById("existing-laundry-text"); - if (timers.length > 0) { + if (timers[1].length > 0) { existingPanel.style.display = 'inherit'; if (timers.length == 1) { existingText.innerText = "You currently have another ongoing laundry. You are creating a new timer."; -- cgit v1.2.3