diff --git a/pages/[step].tsx b/pages/[step].tsx index 42a527ba..5ac55556 100644 --- a/pages/[step].tsx +++ b/pages/[step].tsx @@ -206,9 +206,9 @@ const Steps = ({ person, mellomlagretSøknad, kontaktinformasjon, barn, fastlege )} { + onSendSoknad={async () => { + await removeAllVedleggFromSoknadAndSubmit(); setShowVedleggErrorMessage(false); - removeAllVedleggFromSoknadAndSubmit(); }} onClose={() => { setShowVedleggErrorMessage(false);