Skip to content

Commit

Permalink
PublishDatasetModal.tsx: handleClose() if SubmitComplete
Browse files Browse the repository at this point in the history
  • Loading branch information
ekraffmiller committed Jul 17, 2024
1 parent 1aad727 commit 4de411b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/sections/dataset/publish-dataset/PublishDatasetModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,10 @@ export function PublishDatasetModal({
<Button
variant="primary"
onClick={() => {
handleClose()
submitPublish(selectedVersionUpdateType)
if (submissionStatus === SubmissionStatus.SubmitComplete) {
handleClose()
}
}}
type="submit">
{t('publish.continueButton')}
Expand Down

0 comments on commit 4de411b

Please sign in to comment.