diff --git a/Werkout_ios/BridgeModule.swift b/Werkout_ios/BridgeModule.swift index f038fbf..8a8dd87 100644 --- a/Werkout_ios/BridgeModule.swift +++ b/Werkout_ios/BridgeModule.swift @@ -86,7 +86,7 @@ class BridgeModule: NSObject, ObservableObject { } var nextExerciseObject: SupersetExercise? { - currentExerciseInfo.nextExercise + currentExerciseInfo.goToNextExercise } func resetCurrentWorkout() { @@ -167,7 +167,7 @@ class BridgeModule: NSObject, ObservableObject { } func nextExercise() { - if let nextSupersetExercise = currentExerciseInfo.nextExercise { + if let nextSupersetExercise = currentExerciseInfo.goToNextExercise { updateCurrent(exercise: nextSupersetExercise) } else { completeWorkout() diff --git a/Werkout_ios/CurrentWorkoutInfo.swift b/Werkout_ios/CurrentWorkoutInfo.swift index 549eed7..aed6da7 100644 --- a/Werkout_ios/CurrentWorkoutInfo.swift +++ b/Werkout_ios/CurrentWorkoutInfo.swift @@ -50,7 +50,7 @@ class CurrentWorkoutInfo { } // this needs to set stuff for iphone - var nextExercise: SupersetExercise? { + var goToNextExercise: SupersetExercise? { guard let workout = workout else { return nil } guard let supersets = workout.supersets else { return nil }