diff --git a/todoqueue_frontend/src/components/households/households.js b/todoqueue_frontend/src/components/households/households.js index a37211f..e9f544a 100644 --- a/todoqueue_frontend/src/components/households/households.js +++ b/todoqueue_frontend/src/components/households/households.js @@ -193,20 +193,23 @@ export const ManageHouseholds = ({ households, updateHouseholds, setShowHousehol -
-

Pending Invitations

- {invitations.map((invitation) => ( -
- {invitation.household.name} invited by {invitation.sender.email} - - -
- ))} -
+ { + (invitations.length > 0) && +
+

Pending Invitations

+ {invitations.map((invitation) => ( +
+ {invitation.household.name} invited by {invitation.sender.email} + + +
+ ))} +
+ }