From 49303fb476fdba6d04e6fc7dfec91b09d506e102 Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Wed, 1 Feb 2023 21:45:36 -0800 Subject: [PATCH] Make sure to test object IDs against object IDs --- components/WeaponGrid/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/WeaponGrid/index.tsx b/components/WeaponGrid/index.tsx index bc8abb00..1c5730e9 100644 --- a/components/WeaponGrid/index.tsx +++ b/components/WeaponGrid/index.tsx @@ -196,7 +196,7 @@ const WeaponGrid = (props: Props) => { .then((response) => { // Remove conflicting characters from state conflicts.forEach((c) => { - if (appState.grid.weapons.mainWeapon?.object.id === c.id) { + if (appState.grid.weapons.mainWeapon?.object.id === c.object.id) { appState.grid.weapons.mainWeapon = undefined appState.party.element = 0 } else {