diff --git a/src/App.tsx b/src/App.tsx index d7ac4d9804..baed18a88c 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -355,7 +355,7 @@ export default function App() { = () => { tag: filters.category === AllCategories ? '' : filters.category, }); - let channels = + const channels = loadingChannels || searchingChannels ? Array(9).fill(0) - : (filters.search ? searchList : channelList)?.pages.flatMap((page) => page.channels) || []; - channels = channels.filter((channel) => !channelFilterList.includes(channel.channel)); + : (filters.search ? searchList : channelList)?.pages + .flatMap((page) => page.channels) + .filter((channel) => !channelFilterList.includes(channel.channel)) || []; const filteredFrontendChannels = filterFrontendChannels(channels, filters); diff --git a/src/modules/channels/components/ChannelSearchAndChainSelection.tsx b/src/modules/channels/components/ChannelSearchAndChainSelection.tsx index 9228c67dba..4bfe1155ab 100644 --- a/src/modules/channels/components/ChannelSearchAndChainSelection.tsx +++ b/src/modules/channels/components/ChannelSearchAndChainSelection.tsx @@ -24,9 +24,9 @@ const ChannelSearchAndChainSelection: FC = [setFilter] ); - useEffect(() => { - setSearchQuery(filters.search as string); - }, [filters]); + // useEffect(() => { + // setSearchQuery(filters.search as string); + // }, [filters]); useEffect(() => { !initialLoad && getSearchResults(searchQuery);