From a0c09a8a9060a49ce2b1dcfeff786e780a62ea05 Mon Sep 17 00:00:00 2001 From: altaf-creator Date: Wed, 3 Dec 2025 18:25:39 +0700 Subject: arr --- 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 c36dc40..50a3485 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[1].length > 0) { + if (Array.isArray(timers[1]) && 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