Skip to content

Commit

Permalink
fix: do not redirect for HOSP survey type
Browse files Browse the repository at this point in the history
  • Loading branch information
9sneha-n committed May 22, 2024
1 parent 066847b commit eefc823
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/webapp/pages/survey-list/useRedirectHome.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ export function useRedirectHome() {

if (
(formType === "PPSCountryQuestionnaire" && !currentPPSSurveyForm) ||
(hasAdminAccess &&
formType === "PPSHospitalForm" &&
!currentCountryQuestionnaire) ||
(formType === "PPSWardRegister" && !currentHospitalForm) ||
(formType === "PPSPatientRegister" && !currentWardRegister) ||
(hasAdminAccess &&
Expand All @@ -52,7 +49,6 @@ export function useRedirectHome() {
currentModule,
userGroups,
currentPPSSurveyForm,
currentCountryQuestionnaire,
currentHospitalForm,
currentWardRegister,
currentPrevalenceSurveyForm,
Expand Down

0 comments on commit eefc823

Please sign in to comment.