diff --git a/ios/PurchasesHybridCommon/PurchasesHybridCommonUI/CustomerCenter/CustomerCenterProxy.swift b/ios/PurchasesHybridCommon/PurchasesHybridCommonUI/CustomerCenter/CustomerCenterProxy.swift index 8bbb24bc1..e47769acf 100644 --- a/ios/PurchasesHybridCommon/PurchasesHybridCommonUI/CustomerCenter/CustomerCenterProxy.swift +++ b/ios/PurchasesHybridCommon/PurchasesHybridCommonUI/CustomerCenter/CustomerCenterProxy.swift @@ -141,6 +141,9 @@ private extension CustomerCenterProxy { let vc = CustomerCenterUIViewController() vc.delegate = self vc.shouldShowCloseButton = shouldShowCloseButton + vc.onCloseHandler = { [weak vc] in + vc?.dismiss(animated: true) + } return vc }