Skip to content
This repository was archived by the owner on Oct 11, 2022. It is now read-only.

Commit 4ac1815

Browse files
committed
Fix flow
1 parent 7ddda6e commit 4ac1815

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/views/communitySettings/components/watercooler.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ const Watercooler = (props: Props) => {
7979
Display an open chat feed on your community’s profile.
8080
</SectionSubtitle>
8181
<SectionCardFooter>
82-
{community.watercoolerId && (
82+
{community && community.watercoolerId && (
8383
<Link
8484
style={{ marginRight: '8px' }}
8585
to={`/${community.slug}/general/${community.watercoolerId}`}
@@ -92,7 +92,7 @@ const Watercooler = (props: Props) => {
9292
onClick={community.watercoolerId ? disable : enable}
9393
type="submit"
9494
>
95-
{community.watercoolerId ? 'Disable' : 'Enable'}
95+
{community && community.watercoolerId ? 'Disable' : 'Enable'}
9696
</Button>
9797
</SectionCardFooter>
9898
</SectionCard>

0 commit comments

Comments
 (0)