Proper equality
This commit is contained in:
parent
4737aabc4c
commit
44c0e96474
1 changed files with 1 additions and 1 deletions
|
|
@ -164,7 +164,7 @@ const WeaponGrid = (props: Props) => {
|
|||
}
|
||||
|
||||
function storeGridWeapon(gridWeapon: GridWeapon) {
|
||||
if (gridWeapon.position == -1) {
|
||||
if (gridWeapon.position === -1) {
|
||||
appState.grid.weapons.mainWeapon = gridWeapon
|
||||
appState.party.element = gridWeapon.object.element
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue