Skip to content

Commit

Permalink
Merge pull request #2132 from minvws/bugfix/4999-stuck-fuzzy-matching…
Browse files Browse the repository at this point in the history
…-onboarding
  • Loading branch information
Rool authored Oct 27, 2022
2 parents 02d582c + 1e7e64d commit 3f6a146
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions Sources/CTR/Interface/Holder/HolderCoordinator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -817,7 +817,10 @@ extension HolderCoordinator: UpdatedDisclosurePolicyDelegate {
}

func finishNewDisclosurePolicy() {
removeChildCoordinator()

if let childCoordinator = childCoordinators.first(where: { $0 is UpdatedDisclosurePolicyCoordinator }) {
removeChildCoordinator(childCoordinator)
}
}

func handleDisclosurePolicyUpdates() {
Expand Down Expand Up @@ -847,12 +850,16 @@ extension HolderCoordinator: UpdatedDisclosurePolicyDelegate {
extension HolderCoordinator: FuzzyMatchingFlowDelegate {

func fuzzyMatchingFlowDidFinish() {
removeChildCoordinator()
if let childCoordinator = childCoordinators.first(where: { $0 is FuzzyMatchingCoordinator }) {
removeChildCoordinator(childCoordinator)
}
navigateBackToStart()
}

func fuzzyMatchingFlowDidStop() {
removeChildCoordinator()
if let childCoordinator = childCoordinators.first(where: { $0 is FuzzyMatchingCoordinator }) {
removeChildCoordinator(childCoordinator)
}
navigateBackToStart()
}
}
Expand Down

0 comments on commit 3f6a146

Please sign in to comment.