[FIX] Update navToRoom press verification (#3974)

This commit is contained in:
Gleidson Daniel Silva 2022-03-28 14:43:57 -03:00 committed by GitHub
parent f3cf4f1e7f
commit d9d9d35928
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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