Skip to content

Commit

Permalink
Fix NULL heart rate
Browse files Browse the repository at this point in the history
  • Loading branch information
aidanblack committed Jul 14, 2021
1 parent f588c2b commit ed21b9f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/face.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class Face {
}
if (!this.settings.hideHeartRate && !display.aodActive && display.on && this.body.present) {
document.getElementById("bpm").style.visibility = "visible";
document.getElementById("bpm").text = this.hrm.heartRate;
document.getElementById("bpm").text = this.hrm.heartRate ?? "--";
} else {
document.getElementById("bpm").style.visibility = "hidden";
}
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
"access_heart_rate",
"access_internet",
"access_location",
"access_sleep",
"access_aod"
"access_sleep"
],
"buildTargets": [
"atlas",
Expand Down

0 comments on commit ed21b9f

Please sign in to comment.