Safe calorie diff.
This commit is contained in:
@@ -373,6 +373,10 @@ if (typeof Overlay === "undefined") {
|
||||
}
|
||||
|
||||
calorieDiff() {
|
||||
if (this.workoutStatus == null) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
const {minutes, seconds, calories} = this.workoutStatus;
|
||||
|
||||
const expected = this.expectedCalories(minutes, seconds);
|
||||
|
||||
Reference in New Issue
Block a user