Skip to content

Commit

Permalink
fix(GiniHealthSDK): Check payment providers are installed on main thr…
Browse files Browse the repository at this point in the history
…ead when coming from background
  • Loading branch information
razvancapra committed Mar 25, 2024
1 parent 41da12b commit 00be8ac
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,10 @@ public final class PaymentComponentsController: NSObject {

@objc
private func willEnterForeground() {
if !checkPaymentProviderIsInstalled(paymentProvider: selectedPaymentProvider) {
loadPaymentProviders()
DispatchQueue.main.async {
if !self.checkPaymentProviderIsInstalled(paymentProvider: self.selectedPaymentProvider) {
self.loadPaymentProviders()
}
}
}

Expand Down

0 comments on commit 00be8ac

Please sign in to comment.