Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgefilipecosta committed Jun 7, 2024
1 parent 23d0323 commit 57b181e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/editor/src/components/post-actions/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,9 @@ function ReorderModal( { items, closeModal, onActionPerformed } ) {
} );
}
}

const saveIsDisabled =
! Number.isInteger( Number( orderInput ) ) ||
orderInput?.trim?.() === '';
return (
<form onSubmit={ onReorder }>
<VStack
Expand Down Expand Up @@ -803,10 +805,8 @@ function ReorderModal( { items, closeModal, onActionPerformed } ) {
__next40pxDefaultSize
variant="primary"
type="submit"
disabled={
! Number.isInteger( Number( orderInput ) ) ||
orderInput?.trim?.() === ''
}
disabled={ saveIsDisabled }
__experimentalIsFocusable={ ! saveIsDisabled }
>
{ __( 'Save' ) }
</Button>
Expand Down

0 comments on commit 57b181e

Please sign in to comment.