Make sure to test object IDs against object IDs

This commit is contained in:
Justin Edmund 2023-02-01 21:45:36 -08:00
parent 95d6495c80
commit 49303fb476

View file

@ -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 {