Enable button always if there is no AX value
This commit is contained in:
parent
25bf58da2b
commit
5899e82cdc
1 changed files with 1 additions and 1 deletions
|
|
@ -204,7 +204,7 @@ const WeaponModal = (props: Props) => {
|
||||||
{ (props.gridWeapon.object.element == 0) ? elementSelect() : '' }
|
{ (props.gridWeapon.object.element == 0) ? elementSelect() : '' }
|
||||||
{ ([2, 3, 17, 24].includes(props.gridWeapon.object.series)) ? keySelect() : '' }
|
{ ([2, 3, 17, 24].includes(props.gridWeapon.object.series)) ? keySelect() : '' }
|
||||||
{ (props.gridWeapon.object.ax > 0) ? axSelect() : '' }
|
{ (props.gridWeapon.object.ax > 0) ? axSelect() : '' }
|
||||||
<Button click={updateWeapon} disabled={!formValid}>Save Weapon</Button>
|
<Button click={updateWeapon} disabled={props.gridWeapon.object.ax > 0 && !formValid}>Save Weapon</Button>
|
||||||
</div>
|
</div>
|
||||||
</Dialog.Content>
|
</Dialog.Content>
|
||||||
<Dialog.Overlay className="Overlay" />
|
<Dialog.Overlay className="Overlay" />
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue