diff --git a/ui/component/channelSelector/view.jsx b/ui/component/channelSelector/view.jsx
index de3569c1b..ce0f8f7f9 100644
--- a/ui/component/channelSelector/view.jsx
+++ b/ui/component/channelSelector/view.jsx
@@ -27,7 +27,6 @@ type Props = {
storeSelection?: boolean,
doSetClientSetting: (key: string, value: string, pushPrefs: boolean) => void,
isHeaderMenu: boolean,
- hasDefaultChannel: boolean,
};
export default function ChannelSelector(props: Props) {
@@ -43,13 +42,10 @@ export default function ChannelSelector(props: Props) {
storeSelection,
doSetClientSetting,
isHeaderMenu,
- hasDefaultChannel,
} = props;
const hideAnon = Boolean(props.hideAnon || storeSelection);
- const defaultChannelRef = React.useRef(hasDefaultChannel);
-
const {
push,
location: { pathname },
@@ -66,20 +62,6 @@ export default function ChannelSelector(props: Props) {
}
}
- React.useEffect(() => {
- defaultChannelRef.current = hasDefaultChannel;
- }, [hasDefaultChannel]);
-
- React.useEffect(() => {
- return () => {
- // has a default channel selected, clear the current active channel
- if (defaultChannelRef.current) {
- doSetActiveChannel(null, true);
- }
- };
- // eslint-disable-next-line react-hooks/exhaustive-deps
- }, []);
-
return (