You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This error occurs in the ngOnDestroy method contained in the workout-runner-component. At the end of the exercises, startExerciseTimeTracking calls this.tracker.endTracking(true). In that method, currentWorkoutLog is set to null. When the app navigates to finish, the destroy method is called which calls endTracking but currentWorkoutLog is null so the first line causes an error since you are assigning the value of completed to a null. To fix it, I enclosed the entire body of endTracking in an if(this.currentWorkoutLog) clause.
No description provided.
The text was updated successfully, but these errors were encountered: