Skip to content

Commit

Permalink
[PRMP-1074] - Return to patient search if nhsNumber missing
Browse files Browse the repository at this point in the history
  • Loading branch information
MohammadIqbalAD-NHS committed Dec 17, 2024
1 parent c991cab commit 60c8d6b
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,11 @@ function LloydGeorgeSelectDownloadStage({
useEffect(() => {
const onPageLoad = async () => {
setSubmissionSearchState(SEARCH_AND_DOWNLOAD_STATE.SEARCH_PENDING);
if (!nhsNumber) {
// TODO PRMP-1074 check that this doesn't break the local, mocked behaviour
navigate(routes.SEARCH_PATIENT);
return;
}
try {
// This check is in place for when we navigate directly to a full download,
// in that instance we do not need to get a list of selectable files as we will download all files
Expand Down

0 comments on commit 60c8d6b

Please sign in to comment.