diff --git a/templates/team/member.html.twig b/templates/team/member.html.twig
index 30e1f3d1..38f4ecec 100644
--- a/templates/team/member.html.twig
+++ b/templates/team/member.html.twig
@@ -22,30 +22,35 @@
{# Hide this section if keycloak groups are used to avoid confusing users #}
{% if not useKeycloakGroups %}
-
{% trans %}openInvitations{% endtrans %}
-
- {% for member in team.members |filter(member => member.registerId) %}
- -
-
-
-
- {% endfor %}
-
+ {% set openInvitations = team.members|filter(member => member.registerId) %}
+ {% if openInvitations|length %}
+
{% trans %}openInvitations{% endtrans %}
+
+ {% for member in openInvitations %}
+ -
+
+
+
+ {% endfor %}
+
+ {% endif %}
{% endif %}
{% trans from 'base' %}users{% endtrans %}