diff --git a/src/app/tools/tankopedia/[id]/page.tsx b/src/app/tools/tankopedia/[id]/page.tsx index 29d91db92..b8c60bafb 100644 --- a/src/app/tools/tankopedia/[id]/page.tsx +++ b/src/app/tools/tankopedia/[id]/page.tsx @@ -90,21 +90,6 @@ export default function Page({ params }: { params: { id: string } }) { const gunPitchInput = useRef(null); const gunContainer = useRef(null); - useEffect(() => { - if (!turret.guns.some(({ id }) => gun.id === id)) { - setGun(turret.guns.at(-1)!); - } - }, [turret]); - useEffect(() => { - if (!versusTank.turrets.some(({ id }) => id === versusTurret.id)) { - setVersusTurret(versusTank.turrets.at(-1)!); - } - }, [versusTank]); - useEffect(() => { - if (!versusTurret.guns.some(({ id }) => id === versusGun.id)) { - setVersusGun(versusTurret.guns.at(-1)!); - } - }, [versusTurret]); useEffect(() => { hullYawInput.current!.value = `${-Math.round(hullYaw * (180 / Math.PI))}`; }, [hullYaw]); @@ -318,7 +303,10 @@ export default function Page({ params }: { params: { id: string } }) { return (