diff --git a/packages/client-app/internal_packages/onboarding/lib/page-account-settings-imap.jsx b/packages/client-app/internal_packages/onboarding/lib/page-account-settings-imap.jsx index e330131d86..2ad56fd366 100644 --- a/packages/client-app/internal_packages/onboarding/lib/page-account-settings-imap.jsx +++ b/packages/client-app/internal_packages/onboarding/lib/page-account-settings-imap.jsx @@ -56,52 +56,6 @@ class AccountIMAPSettingsForm extends React.Component { this.props.onConnect(); } - renderPortDropdown(protocol) { - if (!["imap", "smtp"].includes(protocol)) { - throw new Error(`Can't render port dropdown for protocol '${protocol}'`); - } - const {accountInfo, submitting, onFieldKeyPress, onFieldChange} = this.props; - - if (protocol === "imap") { - return ( - - - - - ) - } - if (protocol === "smtp") { - return ( - - - - - ) - } - return ""; - } - renderSecurityDropdown(protocol) { const {accountInfo, submitting, onFieldKeyPress, onFieldChange} = this.props; @@ -142,7 +96,7 @@ class AccountIMAPSettingsForm extends React.Component {
- {this.renderPortDropdown(type)} + {this.renderSecurityDropdown(type)}