fix: more errors from proto migration

This commit is contained in:
TrèsAbhi committed 2024-10-07 10:26:13 -05:00
1 parent b5cb2acdf4
commit 320aead17b
5 files changed
+20 -16

No files matched your search

@@ -122,18 +122,19 @@ export function TankCard({ tank, onSelect }: TankCardProps) {
),
);
return (dimensions[0] * dimensions[1] * dimensions[2]).toFixed(0);
return (dimensions.x * dimensions.y * dimensions.z).toFixed(0);
}
case 'survivability.length':
return Math.max(
...normalizeBoundingBox(
unionBoundingBox(
tankModelDefinition.boundingBox,
turretModelDefinition.boundingBox,
),
case 'survivability.length': {
const bounds = normalizeBoundingBox(
unionBoundingBox(
tankModelDefinition.boundingBox,
turretModelDefinition.boundingBox,
),
).toFixed(0);
);
return Math.max(bounds.x, bounds.y, bounds.z).toFixed(0);
}
}
}, [tankopediaSort.by]);