From 8a81177dd23a750e70669b8176f00d2969e47069 Mon Sep 17 00:00:00 2001 From: "plebeius.eth" Date: Fri, 29 Sep 2023 20:17:49 +0200 Subject: [PATCH] feat(AdminListModal): inform the user when a board doesn't have moderators yet --- src/components/modals/AdminListModal.jsx | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/src/components/modals/AdminListModal.jsx b/src/components/modals/AdminListModal.jsx index 033b673f..a1817c2e 100644 --- a/src/components/modals/AdminListModal.jsx +++ b/src/components/modals/AdminListModal.jsx @@ -58,15 +58,19 @@ const AdminListModal = ({ isOpen, closeModal, roles }) => { }} > - {rolesList.map(({ address, role }, index) => ( -

- •{' '} - {}} className='quote-link'> - u/{address} - - : {role} -

- ))} + {roles ? ( + rolesList.map(({ address, role }, index) => ( +

+ •{' '} + {}} className='quote-link'> + u/{address} + + : {role} +

+ )) + ) : ( +

This board doesn't have moderators yet.

+ )}