From e8adb6aa15bc5f812fe76dc66a4b1305bb64e06c Mon Sep 17 00:00:00 2001 From: David Peer Date: Tue, 8 Mar 2022 19:56:53 +0100 Subject: [PATCH] Wrong index fix. --- apps/qalarm/lib.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/qalarm/lib.js b/apps/qalarm/lib.js index 37be55927..d75ce4204 100644 --- a/apps/qalarm/lib.js +++ b/apps/qalarm/lib.js @@ -77,7 +77,7 @@ function editTimer(idx, hrs, mins, secs){ a.timer = hrs * 3600 + mins * 60 + secs; a.t = (getCurrentTime() + a.timer * 1000) % 86400000; - if(alarmExists(a)){ + if(alarmExists(idx)){ alarms[alarmIndex] = a; } else { alarms.push(a)