From a3ccbb9c136a08d30d507fdd885ebfa2bd39045d Mon Sep 17 00:00:00 2001 From: T'JAMPENS QUENTIN p2406187 Date: Sun, 7 Dec 2025 14:34:46 +0100 Subject: [PATCH] Display message if user don't have tasks --- src/pages/Profile/ProfilePage.jsx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/pages/Profile/ProfilePage.jsx b/src/pages/Profile/ProfilePage.jsx index 871edb5..0271d42 100644 --- a/src/pages/Profile/ProfilePage.jsx +++ b/src/pages/Profile/ProfilePage.jsx @@ -50,9 +50,14 @@ function ProfilePage() {

Vos Événements :

- {user.tasks && user.tasks.map((task, index) => ( - - ))} + {user.tasks && user.tasks.length > 0 ? ( + user.tasks.map((task, index) => ( + + )) + ) : ( +

Aucune tâche pour le moment.

+ )} +