From 8e6da177f99094205278aec02e1dcbd24d0698d8 Mon Sep 17 00:00:00 2001 From: zubiden <19638254+zubiden@users.noreply.github.com> Date: Wed, 5 Feb 2025 23:51:29 +0100 Subject: [PATCH] Settings: Fix info block on new accounts (#5579) --- src/components/common/profile/ChatExtra.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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; }