1
0
Fork 0

Wrong index fix.

master
David Peer 2022-03-08 19:56:53 +01:00
parent 75e88bd587
commit e8adb6aa15
1 changed files with 1 additions and 1 deletions

View File

@ -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)