diff --git a/src/components/common/profile/ChatExtra.tsx b/src/components/common/profile/ChatExtra.tsx index 19bdd6305..27684b0e0 100644 --- a/src/components/common/profile/ChatExtra.tsx +++ b/src/components/common/profile/ChatExtra.tsx @@ -251,9 +251,6 @@ const ChatExtra: FC = ({ }); const handleOpenApp = useLastCallback(() => { - if (!chat) { - return; - } const botId = user?.id; if (!botId) { return; @@ -276,7 +273,7 @@ const ChatExtra: FC = ({ ), }, { withNodes: true }); - if (!chat || chat.isRestricted || (isSelf && !isInSettings)) { + if (chat?.isRestricted || (isSelf && !isInSettings)) { return undefined; }