From 90ec5fa80b2ae48c05e48983eb342492a8c3a349 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=C3=A8sAbhi?= <43380238+tresabhi@users.noreply.github.com> Date: Thu, 29 Feb 2024 15:37:04 -0600 Subject: [PATCH] fix: a few issues --- src/components/Armor/components/ShotDisplay.tsx | 4 ++-- .../Armor/components/SpacedArmorSceneComponent/index.tsx | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/components/Armor/components/ShotDisplay.tsx b/src/components/Armor/components/ShotDisplay.tsx index c7a404a19..88c30e7dd 100644 --- a/src/components/Armor/components/ShotDisplay.tsx +++ b/src/components/Armor/components/ShotDisplay.tsx @@ -230,11 +230,11 @@ export function ShotDisplay() { )}hp`} - {shot.layers.map((layer) => { + {shot.layers.map((layer, index) => { if (layer.type === null && !explosive) return null; return ( - + {hasMultipleLayers && ( diff --git a/src/components/Armor/components/SpacedArmorSceneComponent/index.tsx b/src/components/Armor/components/SpacedArmorSceneComponent/index.tsx index 85ad7dcde..1d7cc9685 100644 --- a/src/components/Armor/components/SpacedArmorSceneComponent/index.tsx +++ b/src/components/Armor/components/SpacedArmorSceneComponent/index.tsx @@ -300,8 +300,6 @@ export function SpacedArmorSceneComponent({ } } - console.log(shot); - useTankopediaTemporary.setState({ shot }); }, })}