Skip to content

Commit

Permalink
Fix Whitelabel progess indicator
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrei Solovev committed May 23, 2024
1 parent df69920 commit e8253d3
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,21 +81,22 @@ extension ChoosePaymentCoordinator {
switch result {
case .failure(let error):
self.processError(error)
DispatchQueue.main.async {
completion()
}
case .success(let source):
self.client.createToken(payload: tokenPayload) { [weak self, weak delegate] result in
switch result {
case .success(let token):
delegate?.choosePaymentMethodDidComplete(with: source, token: token)
case .failure(let error):
self?.processError(error)
DispatchQueue.main.async {
completion()
}
}
}
}

DispatchQueue.main.async {
completion()
}

}
}
}
Expand Down

0 comments on commit e8253d3

Please sign in to comment.