From f13417f2b88e9556bca96afb5a153781360a7474 Mon Sep 17 00:00:00 2001 From: "vianney.jourdy" Date: Fri, 24 Jan 2025 11:52:12 +0100 Subject: [PATCH] =?UTF-8?q?s=C3=A9lection=20du=20premier=20choix=20dans=20?= =?UTF-8?q?le=20questionnaire=20pour=20avoir=20toujours=20une=20valeur?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/quiz/ActivityQuestion.tsx | 2 +- components/quiz/GenderQuestion.tsx | 2 +- components/quiz/GoalQuestion.tsx | 2 +- components/quiz/SleepQuestion.tsx | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/components/quiz/ActivityQuestion.tsx b/components/quiz/ActivityQuestion.tsx index d5f4e01..e72d312 100644 --- a/components/quiz/ActivityQuestion.tsx +++ b/components/quiz/ActivityQuestion.tsx @@ -8,7 +8,7 @@ export default React.forwardRef( (props, ref): React.ReactElement => { const { ...rest } = props; - const [checkedOne, setCheckedOne] = React.useState(false); + const [checkedOne, setCheckedOne] = React.useState(true); const [checkedTwo, setCheckedTwo] = React.useState(false); const [checkedThree, setCheckedThree] = React.useState(false); const [checkedFour, setCheckedFour] = React.useState(false); diff --git a/components/quiz/GenderQuestion.tsx b/components/quiz/GenderQuestion.tsx index 95e8c9e..993b448 100644 --- a/components/quiz/GenderQuestion.tsx +++ b/components/quiz/GenderQuestion.tsx @@ -10,7 +10,7 @@ export default React.forwardRef( const [checkedOne, setCheckedOne] = React.useState(false); const [checkedTwo, setCheckedTwo] = React.useState(false); - const [checkedThree, setCheckedThree] = React.useState(false); + const [checkedThree, setCheckedThree] = React.useState(true); const handleChangeOne = () => { if(!checkedOne) { diff --git a/components/quiz/GoalQuestion.tsx b/components/quiz/GoalQuestion.tsx index 83a00e3..cfa0978 100644 --- a/components/quiz/GoalQuestion.tsx +++ b/components/quiz/GoalQuestion.tsx @@ -8,7 +8,7 @@ export default React.forwardRef( (props, ref): React.ReactElement => { const { ...rest } = props; - const [checkedOne, setCheckedOne] = React.useState(false); + const [checkedOne, setCheckedOne] = React.useState(true); const [checkedTwo, setCheckedTwo] = React.useState(false); const [checkedThree, setCheckedThree] = React.useState(false); const [checkedFour, setCheckedFour] = React.useState(false); diff --git a/components/quiz/SleepQuestion.tsx b/components/quiz/SleepQuestion.tsx index db29a52..f7d36a9 100644 --- a/components/quiz/SleepQuestion.tsx +++ b/components/quiz/SleepQuestion.tsx @@ -8,7 +8,7 @@ export default React.forwardRef( (props, ref): React.ReactElement => { const { ...rest } = props; - const [checkedOne, setCheckedOne] = React.useState(false); + const [checkedOne, setCheckedOne] = React.useState(true); const [checkedTwo, setCheckedTwo] = React.useState(false); const [checkedThree, setCheckedThree] = React.useState(false); const [checkedFour, setCheckedFour] = React.useState(false);