Skip to content
This repository was archived by the owner on Feb 5, 2025. It is now read-only.

Commit 4a89b5f

Browse files
committed
If there is no handler for the self hosted button, don't show it.
1 parent 8e429b1 commit 4a89b5f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

WordPressAuthenticator/Signin/LoginPrologueLoginMethodViewController.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ class LoginPrologueLoginMethodViewController: NUXViewController {
5151
self?.dismiss(animated: true)
5252
self?.googleTapped?()
5353
}
54-
55-
if !LoginFields().restrictToWPCom {
54+
55+
if !LoginFields().restrictToWPCom && selfHostedTapped != nil {
5656
let selfHostedLoginButton = WPStyleGuide.selfHostedLoginButton(alignment: .center)
5757
buttonViewController.stackView?.addArrangedSubview(selfHostedLoginButton)
5858
selfHostedLoginButton.addTarget(self, action: #selector(handleSelfHostedButtonTapped), for: .touchUpInside)

0 commit comments

Comments
 (0)