Fix some issues with the Restore button
@@ -177,12 +177,18 @@ func completePurchase(id: String) {
continue
}
+ func dismiss() {
let vc = window.topViewController
if vc is UIHostingController<OnboardingView> {
- vc?.dismiss(animated: true, completion: nil)
+ vc?.dismiss(animated: true, completion: {
+ dismiss()
+ })
}
}
+
+ dismiss()
+ }
}
}
