chore: build
This commit is contained in:
@@ -317,18 +317,16 @@ function ConsultationHistorique() {
|
|||||||
</div>
|
</div>
|
||||||
{pool.eligible_configs.length > 0 && (
|
{pool.eligible_configs.length > 0 && (
|
||||||
<div className="reward-eligible-cats">
|
<div className="reward-eligible-cats">
|
||||||
{pool.eligible_configs.map((cfg) =>
|
{pool.eligible_configs.flatMap((cfg) =>
|
||||||
cfg.all_products ? (
|
cfg.all_products
|
||||||
<span key={cfg.category} className="reward-eligible-cat">
|
? [<span key={cfg.category} className="reward-eligible-cat">
|
||||||
{cfg.category}{cfg.amount > 0 ? ` — ${cfg.amount}€` : ""}
|
{cfg.category}{cfg.amount > 0 ? ` — ${cfg.amount}€` : ""}
|
||||||
</span>
|
</span>]
|
||||||
) : (
|
: (cfg.product_names ?? []).map((name) => (
|
||||||
cfg.product_names.map((name) => (
|
<span key={`${cfg.category}-${name}`} className="reward-eligible-cat">
|
||||||
<span key={name} className="reward-eligible-cat">
|
|
||||||
{name}
|
{name}
|
||||||
</span>
|
</span>
|
||||||
))
|
))
|
||||||
)
|
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user