Skip to content

Commit

Permalink
IOS-7471 Add reserve handler (#3765)
Browse files Browse the repository at this point in the history
Co-authored-by: Skibin Alexander <[email protected]>
  • Loading branch information
tureck1y and skibinalexander authored Sep 9, 2024
1 parent cf2ac61 commit d1a4481
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -722,6 +722,12 @@ class WalletOnboardingViewModel: OnboardingViewModel<WalletOnboardingStep, Onboa
}

private func backupCard() {
// Sometimes a step state does not update for an unknown reason.
if backupServiceState == .finished {
goToNextStep()
return
}

isMainButtonBusy = true

// Ring onboarding. Set custom image for first step
Expand Down Expand Up @@ -764,6 +770,7 @@ class WalletOnboardingViewModel: OnboardingViewModel<WalletOnboardingStep, Onboa
}
}
.combineLatest(NotificationCenter.didBecomeActivePublisher)
.delay(for: 0.1, scheduler: DispatchQueue.main)
.first()
.receive(on: DispatchQueue.main)
.sink { [weak self] completion in
Expand Down

0 comments on commit d1a4481

Please sign in to comment.