diff --git a/webapp/components/new_channel_modal/new_channel_modal.jsx b/webapp/components/new_channel_modal/new_channel_modal.jsx index 48c2ddd152..d77c29d64c 100644 --- a/webapp/components/new_channel_modal/new_channel_modal.jsx +++ b/webapp/components/new_channel_modal/new_channel_modal.jsx @@ -203,6 +203,7 @@ export default class NewChannelModal extends React.PureComponent { } var channelSwitchText = ''; + let inputPrefixId = ''; switch (this.props.channelType) { case 'P': channelSwitchText = ( @@ -214,6 +215,7 @@ export default class NewChannelModal extends React.PureComponent { {createPublicChannelLink} ); + inputPrefixId = 'newPrivateChannel'; break; case 'O': channelSwitchText = ( @@ -225,6 +227,7 @@ export default class NewChannelModal extends React.PureComponent { {createPrivateChannelLink} ); + inputPrefixId = 'newPublicChannel'; break; } @@ -264,6 +267,7 @@ export default class NewChannelModal extends React.PureComponent {