Skip to content

Commit f8193f9

Browse files
committed
Announcements render only if they exist
1 parent 17fdef0 commit f8193f9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

client/src/components/Lobby/Announcements.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ function Announcements() {
3232
});
3333
}, []);
3434

35+
if (!announcements) {
36+
return false;
37+
}
38+
3539
return (
3640
<Paper className={classes.root}>
3741
<ReactMarkdown

0 commit comments

Comments
 (0)