WIP
fix naming on variable fix tapping on exercise not updating external correctly
This commit is contained in:
@@ -33,7 +33,7 @@ extension BridgeModule: WCSessionDelegate {
|
||||
}
|
||||
|
||||
func sendCurrentExerciseToWatch() {
|
||||
if let currentExercise = currentExerciseInfo.currentExercise,
|
||||
if let currentExercise = currentWorkoutInfo.currentExercise,
|
||||
let duration = currentExercise.duration ,
|
||||
duration > 0 {
|
||||
let watchModel = WatchPackageModel(currentExerciseName: currentExercise.exercise.name,
|
||||
@@ -44,7 +44,7 @@ extension BridgeModule: WCSessionDelegate {
|
||||
let data = try! JSONEncoder().encode(model)
|
||||
send(data)
|
||||
} else {
|
||||
if let currentExercise = currentExerciseInfo.currentExercise,
|
||||
if let currentExercise = currentWorkoutInfo.currentExercise,
|
||||
let reps = currentExercise.reps,
|
||||
reps > 0 {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user