[FIX] Update navToRoom press verification (#3974)
This commit is contained in:
parent
f3cf4f1e7f
commit
d9d9d35928
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue