Skip to content

Commit

Permalink
Merge pull request #55 from EyeSeeTea/fix/hosp-redirect
Browse files Browse the repository at this point in the history
do not redirect for PPS HOSPITAL survey type
  • Loading branch information
MiquelAdell authored May 23, 2024
2 parents ecb550e + d5ccaba commit d634b0f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
3 changes: 3 additions & 0 deletions i18n/en.pot
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,9 @@ msgstr ""
msgid "Org Unit"
msgstr ""

msgid "Facility Code"
msgstr ""

msgid "Start Date"
msgstr ""

Expand Down
5 changes: 4 additions & 1 deletion i18n/es.po
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
msgid ""
msgstr ""
"Project-Id-Version: i18next-conv\n"
"POT-Creation-Date: 2024-05-20T17:45:48.260Z\n"
"POT-Creation-Date: 2024-05-22T13:24:01.336Z\n"
"PO-Revision-Date: 2018-10-25T09:02:35.143Z\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
Expand Down Expand Up @@ -153,6 +153,9 @@ msgstr ""
msgid "Org Unit"
msgstr ""

msgid "Facility Code"
msgstr ""

msgid "Start Date"
msgstr ""

Expand Down
5 changes: 0 additions & 5 deletions src/webapp/pages/survey-list/useRedirectHome.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ export function useRedirectHome() {
const {
currentPPSSurveyForm,
currentPrevalenceSurveyForm,
currentCountryQuestionnaire,
currentHospitalForm,
currentWardRegister,
currentFacilityLevelForm,
Expand All @@ -30,9 +29,6 @@ export function useRedirectHome() {

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

0 comments on commit d634b0f

Please sign in to comment.