diff --git a/sites/public/src/pages/applications/start/autofill.tsx b/sites/public/src/pages/applications/start/autofill.tsx index 1a0f995c0a..e250eddb08 100644 --- a/sites/public/src/pages/applications/start/autofill.tsx +++ b/sites/public/src/pages/applications/start/autofill.tsx @@ -67,22 +67,21 @@ export default () => { useEffect(() => { if (!previousApplication && initialStateLoaded) { - // Temporarily turning autofill off - // if (profile) { - // void applicationsService - // .mostRecentlyCreated({ - // userId: profile.id, - // }) - // .then((res) => { - // if (res && res.applicant) { - // setPreviousApplication(new AutofillCleaner(res).clean()) - // } else { - // onSubmit() - // } - // }) - // } else { - // onSubmit() - // } + if (profile) { + void applicationsService + .mostRecentlyCreated({ + userId: profile.id, + }) + .then((res) => { + if (res && res.applicant) { + setPreviousApplication(new AutofillCleaner(res).clean()) + } else { + onSubmit() + } + }) + } else { + onSubmit() + } onSubmit() } }, [profile, applicationsService, onSubmit, previousApplication, initialStateLoaded])