File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
WooCommerce/Classes/Authentication Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -380,10 +380,14 @@ extension AuthenticationManager: WordPressAuthenticatorDelegate {
380380 ///
381381 func presentSupport( from sourceViewController: UIViewController , sourceTag: WordPressSupportSourceTag ) {
382382 let identifier = HelpAndSupportViewController . classNameWithoutNamespaces
383- guard let supportViewController = UIStoryboard . dashboard. instantiateViewController ( withIdentifier: identifier) as? HelpAndSupportViewController else {
384- return
385- }
383+ let supportViewController = UIStoryboard . dashboard. instantiateViewController ( identifier: identifier,
384+ creator: { coder -> HelpAndSupportViewController ? in
385+ guard let customURL = sourceTag. customHelpCenterURL else {
386+ return nil
387+ }
386388
389+ return HelpAndSupportViewController ( customHelpCenterURL: customURL, coder: coder)
390+ } )
387391 supportViewController. displaysDismissAction = true
388392
389393 let navController = WooNavigationController ( rootViewController: supportViewController)
You can’t perform that action at this time.
0 commit comments