Skip to content

Commit

Permalink
Updated the utility function params
Browse files Browse the repository at this point in the history
  • Loading branch information
Alejandro-Vega committed Mar 13, 2024
1 parent 427cb13 commit 7237603
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/content/dataSubmissions/DataSubmission.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -372,11 +372,7 @@ const DataSubmission: FC<Props> = ({ submissionId, tab }) => {
return { disable: true, isAdminOverride: false };
}

return shouldDisableSubmit(
data.getSubmission.metadataValidationStatus,
data.getSubmission.fileValidationStatus,
user?.role
);
return shouldDisableSubmit(data.getSubmission, user?.role);
},
[data?.getSubmission, user]
);
Expand Down

0 comments on commit 7237603

Please sign in to comment.