diff --git a/web/sidebar/community-creation/community-creation-modal.react.js b/web/sidebar/community-creation/community-creation-modal.react.js --- a/web/sidebar/community-creation/community-creation-modal.react.js +++ b/web/sidebar/community-creation/community-creation-modal.react.js @@ -98,17 +98,15 @@ dispatchActionPromise(newThreadActionTypes, newThreadResultPromise); const newThreadResult: NewThreadResult = await newThreadResultPromise; - if (newThreadResult) { - const { newThreadID } = newThreadResult; - await dispatch({ - type: updateNavInfoActionType, - payload: { - activeChatThreadID: newThreadID, - }, - }); - - modalContext.popModal(); - } + const { newThreadID } = newThreadResult; + await dispatch({ + type: updateNavInfoActionType, + payload: { + activeChatThreadID: newThreadID, + }, + }); + + modalContext.popModal(); }, [callCreateNewCommunity, dispatch, dispatchActionPromise, modalContext]); const megaphoneIcon = React.useMemo(