Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
GMALKHA committed Dec 6, 2024
1 parent 55f4a5e commit 06e4c80
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,9 @@ class PayPalWebViewModel: ObservableObject {
}
} catch {
print("Error starting PayPalWebCheckoutClient")
self.state.createdOrderResponse = .error(message: error.localizedDescription)
DispatchQueue.main.async {
self.state.createdOrderResponse = .error(message: error.localizedDescription)
}
}
}
}
Expand Down

0 comments on commit 06e4c80

Please sign in to comment.