Enable button always if there is no AX value

This commit is contained in:
Justin Edmund 2022-03-03 18:00:24 -08:00
parent 25bf58da2b
commit 5899e82cdc

View file

@ -204,7 +204,7 @@ const WeaponModal = (props: Props) => {
{ (props.gridWeapon.object.element == 0) ? elementSelect() : '' }
{ ([2, 3, 17, 24].includes(props.gridWeapon.object.series)) ? keySelect() : '' }
{ (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>
</Dialog.Content>
<Dialog.Overlay className="Overlay" />