Skip to content

Commit

Permalink
Update widget.js
Browse files Browse the repository at this point in the history
  • Loading branch information
miseler authored Jun 4, 2024
1 parent 4c4b123 commit 2c528f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/widalarmeta/widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
this.nextAlarm = alarm;
}
}
const next = this.nextAlarm !== undefined ? require("sched").getTimeToAlarm(this.nextAlarm);
const next = this.nextAlarm !== undefined ? require("sched").getTimeToAlarm(this.nextAlarm) : 0;

let calcWidth = 0;
let drawSeconds = (config.showSeconds & 0b01 && !Bangle.isLocked()) || (config.showSeconds & 0b10 && next <= 1000*60);
Expand Down

0 comments on commit 2c528f6

Please sign in to comment.