Update index.tsx

This commit is contained in:
Justin Edmund 2022-02-23 14:14:06 -08:00
parent 1ece2d89f8
commit 7e7100cecf

View file

@ -19,9 +19,9 @@ const GridRep = (props: Props) => {
for (const [key, value] of Object.entries(props.grid)) {
if (value.position == -1)
setMainhand(value.weapon)
setMainhand(value.object)
else if (!value.mainhand && value.position != null)
newWeapons[value.position] = value.weapon
newWeapons[value.position] = value.object
}
setWeapons(newWeapons)