Skip to content

Commit

Permalink
fixing redundant call, and ensuring the button will be disabled befor…
Browse files Browse the repository at this point in the history
…e user action
  • Loading branch information
Felipe Imperio authored and Felipe Imperio committed Nov 20, 2024
1 parent 1f60de3 commit 2c6189a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ios/FlankerNativeComponents/GameManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,6 @@ class GameManager {
delegate?.setEnableButton(isEnable: false)

hasRespondedInCurrentTrial = false
delegate?.setEnableButton(isEnable: false)

if !isFirst {
endFeedbackTimestamp = bootTime + CACurrentMediaTime()
Expand Down Expand Up @@ -250,7 +249,7 @@ class GameManager {
userInfo: nil,
repeats: false)
RunLoop.main.add(timeResponse!, forMode: .common)
}
}


@objc func timeResponseFailed() {
Expand Down

0 comments on commit 2c6189a

Please sign in to comment.