From 13e1cd316831cff63a5ff084600954fe15b2bf14 Mon Sep 17 00:00:00 2001 From: Emma Fabre Date: Wed, 11 Dec 2024 17:21:21 +0100 Subject: [PATCH] Ensure Ownerships table don't crash on missing creator prop (like in pending) --- .../organizers/[organizerId]/ownerships/OwnershipsTable.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/organizers/[organizerId]/ownerships/OwnershipsTable.tsx b/src/pages/organizers/[organizerId]/ownerships/OwnershipsTable.tsx index 6e426e2c0..1bfd0bf91 100644 --- a/src/pages/organizers/[organizerId]/ownerships/OwnershipsTable.tsx +++ b/src/pages/organizers/[organizerId]/ownerships/OwnershipsTable.tsx @@ -45,7 +45,7 @@ export const OwnershipsTable = ({ {t('organizers.ownerships.table.actions.title')} - {creator.email} + {creator && {creator.email}} {requests.map((request) => (