Skip to content

Commit

Permalink
fix: senior surveys not working
Browse files Browse the repository at this point in the history
  • Loading branch information
sgoycoechea-lightit committed Dec 9, 2024
1 parent 0ffd4ac commit c14fa13
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
8 changes: 8 additions & 0 deletions apps/eo_web/src/router/Router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,14 @@ export const Router = () => {
path={ROUTES.seniorSurveyThankYou}
/>

{/* OLDER ADULT (NEW SENIOR) */}
<Route element={<SeniorProfiling />} path={ROUTES.olderAdultForm} />
<Route element={<SeniorSurveyForm />} path={ROUTES.olderAdultSurvey} />
<Route
element={<SeniorSurveyThankYou />}
path={ROUTES.olderAdultSurveyThankYou}
/>

<Route element={<Checkout />} path={ROUTES.checkout} />
</Routes>
);
Expand Down
7 changes: 6 additions & 1 deletion apps/eo_web/src/router/routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,15 @@ export const ROUTES = {
cancerSurvey: "/cancer/survey",
cancerSurveyThankYou: "/cancer/survey-thank-you",

// Senior PATH
// Senior PATH -- Old ones, can be deleted in the future once everything points to older-adult
seniorForm: "/senior/profiling",
seniorSurvey: "/senior/survey",
seniorSurveyThankYou: "/senior/survey-thank-you",

// New Senior PATH
olderAdultForm: "/older-adult/profiling",
olderAdultSurvey: "/older-adult/survey",
olderAdultSurveyThankYou: "/older-adult/survey-thank-you",

checkout: "/checkout",
} as const;

0 comments on commit c14fa13

Please sign in to comment.