Skip to content

Commit

Permalink
fix: do not display confirmation alert when closing flow on confirmat…
Browse files Browse the repository at this point in the history
…ion screen
  • Loading branch information
El-Fitz committed Dec 16, 2024
1 parent aa54c92 commit 734217b
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,12 @@ private func hostedView(
vc.title = step.title
vc.navigationItem.rightBarButtonItem = UIBarButtonItem.closeButton(
action: UIAction { _ in
transitionCallback(.toCancellationAlert)
switch step {
case .teamPlanSelection, .teamName, .confirmation:
transitionCallback(.toCancellationAlert)
case .completion:
transitionCallback(.toApp)
}
},
accessibilityLabel: step.closeButtonAccessibilityLabel
)
Expand Down

0 comments on commit 734217b

Please sign in to comment.