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} )) - ) )}
)}