From d09b2f964a23242c8db976177e416dc22926c910 Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Thu, 14 Feb 2019 08:54:23 +0000 Subject: [PATCH] Journal members: add a notice for no members. --- src/Journals/JournalMembers.tsx | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/src/Journals/JournalMembers.tsx b/src/Journals/JournalMembers.tsx index 7b22dfe..a867100 100644 --- a/src/Journals/JournalMembers.tsx +++ b/src/Journals/JournalMembers.tsx @@ -38,13 +38,17 @@ class JournalMembers extends React.PureComponent { { members ? - - { members.map((member) => ( - - {member.user} - - ))} - + (members.length > 0 ? + + { members.map((member) => ( + + {member.user} + + ))} + + : +
No members
+ ) : }