Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/leka/ios-monorepo into d…
Browse files Browse the repository at this point in the history
…evelop
  • Loading branch information
Lucieveber committed Sep 16, 2024
2 parents c0f4118 + e0a7173 commit 1a12974
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ extension DanceFreezeView {
func randomSwitch() {
if case .completed = self.viewModel.exercicesSharedData.state { return }
if self.viewModel.progress < 1.0 {
let rand = Double.random(in: 2..<10)
let rand = Double.random(in: 1..<(self.viewModel.isDancing ? 10 : 3))

DispatchQueue.main.asyncAfter(deadline: .now() + rand) {
if case .completed = self.viewModel.exercicesSharedData.state { return }
Expand Down

0 comments on commit 1a12974

Please sign in to comment.