From 2e328018384e9904e78ce82f31a5958b7281d4fa Mon Sep 17 00:00:00 2001 From: Nathan Lamy Date: Tue, 23 Dec 2025 16:18:16 +0100 Subject: [PATCH] fix: hide previous registrations --- app/components/repas/registration.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/components/repas/registration.tsx b/app/components/repas/registration.tsx index 86d9141..ecce3cb 100644 --- a/app/components/repas/registration.tsx +++ b/app/components/repas/registration.tsx @@ -16,7 +16,7 @@ export default function MealRegistration({ const { isLoading, error, meals: rawMeals, refetch } = useMeals(); const filterRegisteredMeals = (meals: Meal[]) => { - return meals?.filter((meal) => meal.isRegistered || meal.submittable); + return meals?.filter((meal) => meal.submittable); }; const meals = filterRegisteredMeals(rawMeals || []); @@ -39,7 +39,7 @@ export default function MealRegistration({ {error && (

Erreur lors du chargement des menus.

)} - {meals && meals.length === 0 &&

Aucun menu disponible.

} + {meals && meals.length === 0 &&

Aucun repas disponible.

} {/* Menus */}