correct filtering

This commit is contained in:
tresabhi committed 2026-09-30 18:41:22 -05:00
1 parent cbf320454f
commit 5d4e0541b2
2 files changed
+2 -4

No files matched your search

@@ -23,7 +23,7 @@ export function TankopediaCharacteristics({
<div className={styles.characteristics}>
{characteristicsGroups.map((group) => {
const items = group.order.filter(
(item) => "name" in item && characteristics[item.name] !== null,
(item) => "name" in item && item.name in characteristics,
).length;
const shouldRender = items > 0;
@@ -62,9 +62,7 @@ export const Page = withErrorWrapper(
<div className={styles.sandbox}>
{!skeleton && <TankopediaSandbox thicknessRange={thicknessRange} />}
<TankopediaCharacteristics
computedCharacteristics={characteristics}
/>
<TankopediaCharacteristics characteristics={characteristics} />
</div>
</div>
);