1
0
Fork 0

Change condition check to !== null

master
Ishidres 2024-03-22 16:39:35 +01:00
parent e5a76b0825
commit 50afb26b8d
1 changed files with 1 additions and 1 deletions

View File

@ -180,7 +180,7 @@ if (sleeplog.conf.enabled) {
// check wearing status either based on HRM or temperature as set in settings
checkIsWearing: function(returnFn, data) {
if (!!this.conf.wearTemp) {
if (this.conf.wearTemp !== null) {
return returnFn(!Bangle.isCharging() && E.getTemperature() >= this.conf.wearTemp, data);
}