From 670debbe26226701720a4739b6da4ba58b292b52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=C3=A8sAbhi?= <43380238+tresabhi@users.noreply.github.com> Date: Thu, 24 Oct 2024 15:43:06 -0500 Subject: [PATCH] fix: 1 extra crew members --- packages/scripts/src/buildAssets/definitions.ts | 2 +- .../components/Characteristics/index.tsx | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/scripts/src/buildAssets/definitions.ts b/packages/scripts/src/buildAssets/definitions.ts index de1b8fb7d..a6183f5bb 100644 --- a/packages/scripts/src/buildAssets/definitions.ts +++ b/packages/scripts/src/buildAssets/definitions.ts @@ -814,7 +814,7 @@ export async function definitions() { if (crewKey === '#text') return; entry = { type: blitzCrewTypeToBlitzkit[crewKey as BlitzCrewType], - count: 1, + count: 0, substitute: [], }; crew.push(entry); diff --git a/packages/website/src/components/Tankopedia/CharacteristicsSection/components/Characteristics/index.tsx b/packages/website/src/components/Tankopedia/CharacteristicsSection/components/Characteristics/index.tsx index b8f985c50..ae0428505 100644 --- a/packages/website/src/components/Tankopedia/CharacteristicsSection/components/Characteristics/index.tsx +++ b/packages/website/src/components/Tankopedia/CharacteristicsSection/components/Characteristics/index.tsx @@ -454,14 +454,12 @@ export function Characteristics() { {tank.crew.map((member) => { - const count = member.count ?? 1; - return ( 1 ? ` x ${count}` : '' + member.count > 1 ? ` x ${member.count}` : '' }`} unit="%" decimals={0}