diff --git a/forms-flow-web/src/components/FOI/customComponents/ContactApplicant/index.tsx b/forms-flow-web/src/components/FOI/customComponents/ContactApplicant/index.tsx index eca03acdf..f5a25b99c 100644 --- a/forms-flow-web/src/components/FOI/customComponents/ContactApplicant/index.tsx +++ b/forms-flow-web/src/components/FOI/customComponents/ContactApplicant/index.tsx @@ -138,6 +138,7 @@ export const ContactApplicant = ({ setFiles([]); setEditorValue(""); setDraftCorrespondence({}); + setCorrespondenceId(null); setSelectedEmails([]); setCurrentTemplate(0); } @@ -585,7 +586,7 @@ export const ContactApplicant = ({ - const [correspondenceId, setCorrespondenceId] = useState(0); + const [correspondenceId, setCorrespondenceId] = useState(null); const editDraft = async (i : any) => { setEditMode(true);