From 61c0650ceca1d0d6f44fedfd34ccc34f8fe99e10 Mon Sep 17 00:00:00 2001 From: yqrashawn Date: Fri, 19 Jan 2024 16:36:14 +0800 Subject: [PATCH] fix: do not show community view until it's loaded (#18570) --- src/status_im/contexts/communities/overview/view.cljs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/status_im/contexts/communities/overview/view.cljs b/src/status_im/contexts/communities/overview/view.cljs index 51c8e47887..a8fbf1d440 100644 --- a/src/status_im/contexts/communities/overview/view.cljs +++ b/src/status_im/contexts/communities/overview/view.cljs @@ -370,9 +370,10 @@ (let [{:keys [id joined] :as community} (rf/sub [:communities/community id]) pending? (rf/sub [:communities/my-pending-request-to-join id])] - (when joined - (rf/dispatch [:activity-center.notifications/dismiss-community-overview id])) - [community-scroll-page community pending?])) + (when community + (when joined + (rf/dispatch [:activity-center.notifications/dismiss-community-overview id])) + [community-scroll-page community pending?]))) (defn overview [id]