From fba68bc221678d255e9368a4443f66c9b188c895 Mon Sep 17 00:00:00 2001 From: hzrd149 Date: Fri, 12 Apr 2024 16:56:50 -0500 Subject: [PATCH] fix build --- src/views/communities/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(