Fix IAP issue
@@ -176,12 +176,14 @@ func completePurchase(id: String) {
func dismiss() {
let vc = window.topViewController
- if vc is UIHostingController<OnboardingView> {
+ guard vc != window.rootViewController else {
+ return
+ }
+
vc?.dismiss(animated: true, completion: {
dismiss()
})
}
- }
dismiss()
}
