Skip to content

Commit

Permalink
Fix reset error in trixo form
Browse files Browse the repository at this point in the history
  • Loading branch information
daniellemaxwell committed Jan 24, 2024
1 parent 9716d61 commit d81f8da
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions web/gds-user-ui/src/components/TrixoQuestionnaire/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,13 @@ const TrixoQuestionnaire: React.FC = () => {
const stepStatus = getStepStatus(steps, currentStep);
const [shouldResetForm, setShouldResetForm] = useState<boolean>(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
Expand Down

0 comments on commit d81f8da

Please sign in to comment.