Skip to content

Commit

Permalink
Update validation deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Alejandro-Vega committed Dec 31, 2024
1 parent 49843c4 commit 1f7d50a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/DataSubmissions/ValidationControls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ const ValidationControls: FC = () => {
}

return dataSubmission?.metadataValidationStatus !== null;
}, [user?.role, dataSubmission]);
}, [user, dataSubmission]);

const canValidateFiles: boolean = useMemo(() => {
const hasPermission = ValidateMap[dataSubmission?.status]
Expand All @@ -162,7 +162,7 @@ const ValidationControls: FC = () => {
}

return dataSubmission?.fileValidationStatus !== null;
}, [user?.role, dataSubmission]);
}, [user, dataSubmission]);

const [validateSubmission] = useMutation<ValidateSubmissionResp, ValidateSubmissionInput>(
VALIDATE_SUBMISSION,
Expand Down

0 comments on commit 1f7d50a

Please sign in to comment.