From 63dabc3f8e090c120d8e65463d0bc186984fd27e Mon Sep 17 00:00:00 2001 From: Xor290 Date: Fri, 12 Jun 2026 10:02:37 +0200 Subject: [PATCH] chore: build --- .../src/pages/User/ConsultationHistorique.tsx | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/frontend-prep/src/pages/User/ConsultationHistorique.tsx b/frontend-prep/src/pages/User/ConsultationHistorique.tsx index c01f242c..836d8134 100644 --- a/frontend-prep/src/pages/User/ConsultationHistorique.tsx +++ b/frontend-prep/src/pages/User/ConsultationHistorique.tsx @@ -317,18 +317,16 @@ function ConsultationHistorique() { {pool.eligible_configs.length > 0 && (
- {pool.eligible_configs.map((cfg) => - cfg.all_products ? ( - + {pool.eligible_configs.flatMap((cfg) => + cfg.all_products + ? [ {cfg.category}{cfg.amount > 0 ? ` — ${cfg.amount}€` : ""} - - ) : ( - cfg.product_names.map((name) => ( - + ] + : (cfg.product_names ?? []).map((name) => ( + {name} )) - ) )}
)}