Search: Fix "0" in popular apps (#4945)

This commit is contained in:
zubiden 2024-09-06 15:43:30 +02:00 committed by Alexander Zinchuk
parent b407960fd7
commit b611bc409f

View File

@ -98,7 +98,7 @@ const BotAppResults: FC<OwnProps & StateProps> = ({
description={lang('ChatList.Search.NoResultsDescription')}
/>
)}
{canRenderContents && !searchQuery && recentBotIds?.length && (
{canRenderContents && !searchQuery && Boolean(recentBotIds?.length) && (
<div className="search-section">
<h3 className="section-heading">
{recentBotIds.length > LESS_LIST_ITEMS_AMOUNT && (