From 0e6b0087ce652c780bbb1d3d3faa93576ba98f4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=C3=A8sAbhi?= <43380238+tresabhi@users.noreply.github.com> Date: Sun, 27 Jul 2025 20:27:43 -0500 Subject: [PATCH] fix: tankopedia compare acknoledge selected equipment --- .../Characteristics/components/InfoWithDelta.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/website/src/components/Tankopedia/CharacteristicsSection/components/Characteristics/components/InfoWithDelta.tsx b/packages/website/src/components/Tankopedia/CharacteristicsSection/components/Characteristics/components/InfoWithDelta.tsx index b54f5739a..a5f74676e 100644 --- a/packages/website/src/components/Tankopedia/CharacteristicsSection/components/Characteristics/components/InfoWithDelta.tsx +++ b/packages/website/src/components/Tankopedia/CharacteristicsSection/components/Characteristics/components/InfoWithDelta.tsx @@ -70,6 +70,9 @@ export function InfoWithDelta({ state.protagonist.shell, ), ); + const equipmentMatrix = Duel.use( + (state) => state.protagonist.equipmentMatrix, + ); const others = useMemo(() => { const defaultSkills = createDefaultSkills(skillDefinitions); @@ -106,7 +109,7 @@ export function InfoWithDelta({ provisions: member.provisions, engine: member.engine, gun: member.gun, - equipmentMatrix: member.equipmentMatrix, + equipmentMatrix: equipmentMatrix, shell: member.gun.gun_type!.value.base.shells[shellIndex], stockEngine: tank.engines[0], stockGun: tank.turrets[0].guns[0], @@ -133,7 +136,7 @@ export function InfoWithDelta({ return othersValue !== undefined; }) as TankCharacteristics[]; - }, [relativeAgainst, shellIndex]); + }, [relativeAgainst, shellIndex, equipmentMatrix]); const betterTanks = others.filter((tank) => { const othersValue = typeof props.value === 'function'