diff --git a/invenio_rdm_records/assets/semantic-ui/js/invenio_rdm_records/src/deposit/controls/PublishButton/PublishButton.js b/invenio_rdm_records/assets/semantic-ui/js/invenio_rdm_records/src/deposit/controls/PublishButton/PublishButton.js index a925ad5f1..71dafb704 100644 --- a/invenio_rdm_records/assets/semantic-ui/js/invenio_rdm_records/src/deposit/controls/PublishButton/PublishButton.js +++ b/invenio_rdm_records/assets/semantic-ui/js/invenio_rdm_records/src/deposit/controls/PublishButton/PublishButton.js @@ -54,7 +54,7 @@ class PublishButtonComponent extends Component { } // All files must be finished uploading - const allCompleted = filesArray.every(file => file.status === "finished") + const allCompleted = filesArray.every((file) => file.status === "finished"); return !allCompleted; }; diff --git a/invenio_rdm_records/assets/semantic-ui/js/invenio_rdm_records/src/deposit/controls/PublishButton/SubmitReviewButton.js b/invenio_rdm_records/assets/semantic-ui/js/invenio_rdm_records/src/deposit/controls/PublishButton/SubmitReviewButton.js index 48c14b0a1..56f076f5a 100644 --- a/invenio_rdm_records/assets/semantic-ui/js/invenio_rdm_records/src/deposit/controls/PublishButton/SubmitReviewButton.js +++ b/invenio_rdm_records/assets/semantic-ui/js/invenio_rdm_records/src/deposit/controls/PublishButton/SubmitReviewButton.js @@ -58,7 +58,7 @@ class SubmitReviewButtonComponent extends Component { } // All files must be finished uploading - const allCompleted = filesArray.every(file => file.status === "finished") + const allCompleted = filesArray.every((file) => file.status === "finished"); return !allCompleted; }; @@ -138,7 +138,7 @@ SubmitReviewButtonComponent.defaultProps = { disableSubmitForReviewButton: undefined, publishModalExtraContent: undefined, directPublish: false, - filesState: undefined + filesState: undefined, }; const mapStateToProps = (state) => ({