Skip to content

Commit

Permalink
disable submit publication button
Browse files Browse the repository at this point in the history
  • Loading branch information
shayanaijaz committed Nov 25, 2024
1 parent 3a92605 commit 859baf1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const SubmitPublicationReview = ({ callbackUrl }) => {

const history = useHistory();

const [submitDisabled, setSubmitDisabled] = useState(false);
const [submitDisabled, setSubmitDisabled] = useState(true);

const { debug } = useSelector((state) => state.workbench.config);

Expand Down Expand Up @@ -85,7 +85,7 @@ const SubmitPublicationReview = ({ callbackUrl }) => {
<Button
type="primary"
className={styles['submit-button']}
disabled={submitDisabled || debug}
disabled={submitDisabled}
isLoading={isApproveLoading}
onClick={handleApproveAndPublish}
>
Expand Down

0 comments on commit 859baf1

Please sign in to comment.