Skip to content

Commit

Permalink
fix: enlever le csp pour les source maman blues, mpedia, site parents (
Browse files Browse the repository at this point in the history
…#153)

* fix: enlever le csp pour les source maman blues, mpedia, site parents

* fix: ajout de la source 1000 premiers jours pour l'enlevement du csp
  • Loading branch information
mbarry-ippon authored Apr 18, 2023
1 parent d85e040 commit 11c39bc
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions pages/survey/before-survey.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,18 @@ export default function BeforeSurvey() {
TrackerUtils.CATEG.introduction,
TrackerUtils.ACTION.end_intro
)
source === "1000-premiers-jours"
? await goToEpdsSurvey()
: await goToDemographicSurvey()
switch (source) {
case "maman-blues":
case "site-parents":
case "mpedia":
case "1000-premiers-jours":
await goToEpdsSurvey()
break

default:
await goToDemographicSurvey()
break
}
}

const goToDemographicSurvey = async () => {
Expand Down Expand Up @@ -110,7 +119,10 @@ export default function BeforeSurvey() {

<div className="button-start-survey">
<button className="fr-btn fr-btn--lg" onClick={goToNextPage}>
{source === "1000-premiers-jours"
{source === "maman-blues" ||
source === "1000-premiers-jours" ||
source === "site-parents" ||
source === "mpedia"
? "Commencer le questionnaire"
: "Suivant"}
</button>
Expand Down

0 comments on commit 11c39bc

Please sign in to comment.