From db3af208906482add412d86ccffde6249b048be5 Mon Sep 17 00:00:00 2001 From: NilsUeter Date: Sun, 6 Apr 2025 20:19:20 +0200 Subject: [PATCH] show count in more cases --- src/10th/ShortSummaryTable.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/10th/ShortSummaryTable.jsx b/src/10th/ShortSummaryTable.jsx index 9de51f0..8e7c572 100644 --- a/src/10th/ShortSummaryTable.jsx +++ b/src/10th/ShortSummaryTable.jsx @@ -186,7 +186,9 @@ export const ShortSummaryTable = ({ force, primaryColor, name, points }) => { {sortedUnits.map((unit, index) => { let { name, cost, models } = unit; const count = - models?.length === 1 ? models?.[0]?.count || 1 : 1; + models?.filter((model) => model.count > 0)?.length === 1 + ? models?.[0]?.count || 1 + : 1; return (