Skip to content

Commit

Permalink
[PRMP-1074] - Return to patient search if nhsNumber missing when down…
Browse files Browse the repository at this point in the history
…loading files
  • Loading branch information
MohammadIqbalAD-NHS committed Dec 17, 2024
1 parent 60c8d6b commit 3858025
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@ function LloydGeorgeDownloadStage({
const onPageLoad = async () => {
progressTimer.stop();
window.clearInterval(intervalTimer);
if (!nhsNumber) {
navigate(routes.SEARCH_PATIENT);
return;
}
try {
const preSignedUrl = await getPresignedUrlForZip({
baseUrl,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ function LloydGeorgeSelectDownloadStage({
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;
}
Expand Down

0 comments on commit 3858025

Please sign in to comment.