From 9d805f63d5710f3e2b69f796c0f8237531cf58c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=C3=A8sAbhi?= <43380238+tresabhi@users.noreply.github.com> Date: Fri, 9 Feb 2024 23:28:36 -0600 Subject: [PATCH] fix: use dynamic shells --- .../tools/tankopedia/[id]/components/Characteristics/index.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/app/tools/tankopedia/[id]/components/Characteristics/index.tsx b/src/app/tools/tankopedia/[id]/components/Characteristics/index.tsx index dfb0abff0..0afd4c87b 100644 --- a/src/app/tools/tankopedia/[id]/components/Characteristics/index.tsx +++ b/src/app/tools/tankopedia/[id]/components/Characteristics/index.tsx @@ -15,14 +15,13 @@ import { InfoWithDelta } from './components/InfoWithDelta'; export function Characteristics() { const awaitedModelDefinitions = use(modelDefinitions); - const { tank, turret, gun, engine, track } = useDuel( + const { tank, turret, gun, engine, track, shell } = useDuel( (state) => state.protagonist!, ); const stockEngine = tank.engines[0]; const stockTrack = tank.tracks[0]; const stockTurret = tank.turrets[0]; const stockGun = stockTurret.guns[0]; - const shell = gun.shells[0]; const tankModelDefinition = awaitedModelDefinitions[tank.id]; const turretModelDefinition = tankModelDefinition.turrets[turret.id]; const gunModelDefinition = turretModelDefinition.guns[gun.id];