Make sure to test object IDs against object IDs
This commit is contained in:
parent
95d6495c80
commit
49303fb476
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue