From d9d9d359280c5cac15d4a0d102fb3775a32a63cd Mon Sep 17 00:00:00 2001 From: Gleidson Daniel Silva Date: Mon, 28 Mar 2022 14:43:57 -0300 Subject: [PATCH] [FIX] Update navToRoom press verification (#3974) --- app/containers/markdown/Hashtag.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/containers/markdown/Hashtag.tsx b/app/containers/markdown/Hashtag.tsx index bdfd1031..482740ed 100644 --- a/app/containers/markdown/Hashtag.tsx +++ b/app/containers/markdown/Hashtag.tsx @@ -18,7 +18,7 @@ const Hashtag = React.memo(({ hashtag, channels, navToRoomInfo, style = [] }: IH const handlePress = () => { const index = channels?.findIndex(channel => channel.name === hashtag); - if (index && navToRoomInfo) { + if (typeof index !== 'undefined' && navToRoomInfo) { const navParam = { t: 'c', rid: channels?.[index]._id