diff --git a/src/views/communities/index.tsx b/src/views/communities/index.tsx index a628f5b7d..fd9be5462 100644 --- a/src/views/communities/index.tsx +++ b/src/views/communities/index.tsx @@ -85,7 +85,7 @@ function CommunitiesHomePage() { const pub = await publish("Create Community", draft, values.relays, false); - navigate(`/c/${getCommunityName(pub.event)}/${pub.event.pubkey}`); + if(pub) navigate(`/c/${getCommunityName(pub.event)}/${pub.event.pubkey}`); }; const timeline = useTimelineLoader(