From d81f8da186ac4a0c54427670a5b6854c3c51da8c Mon Sep 17 00:00:00 2001 From: daniellemaxwell Date: Wed, 24 Jan 2024 13:46:37 -0500 Subject: [PATCH] Fix reset error in trixo form --- web/gds-user-ui/src/components/TrixoQuestionnaire/index.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/web/gds-user-ui/src/components/TrixoQuestionnaire/index.tsx b/web/gds-user-ui/src/components/TrixoQuestionnaire/index.tsx index 888a94e62..6af29f9af 100644 --- a/web/gds-user-ui/src/components/TrixoQuestionnaire/index.tsx +++ b/web/gds-user-ui/src/components/TrixoQuestionnaire/index.tsx @@ -17,14 +17,13 @@ const TrixoQuestionnaire: React.FC = () => { const stepStatus = getStepStatus(steps, currentStep); const [shouldResetForm, setShouldResetForm] = useState(false); const { isStepDeleted, updateDeleteStepState } = useCertificateStepper(); - const isTrixoStepDeleted = isStepDeleted(StepEnum.LEGAL); + const isTrixoStepDeleted = isStepDeleted(StepEnum.TRIXO); const { certificateStep, isFetchingCertificateStep, getCertificateStep } = useFetchCertificateStep({ key: StepEnum.TRIXO }); useEffect(() => { if (isTrixoStepDeleted) { - console.log('[] isLegalStepDeleted', isTrixoStepDeleted); const payload = { step: StepEnum.TRIXO, isDeleted: false