From 10dcf4d3f755b473793a8676e9d9b70dedaf5eb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halvor=20Grizzly=20Bj=C3=B8rn?= Date: Tue, 4 Jun 2024 20:13:35 +0200 Subject: [PATCH] =?UTF-8?q?Pr=C3=B8ver=20med=20async=20p=C3=A5=20knapp=20f?= =?UTF-8?q?or=20=C3=A5=20ikke=20trigge=20sending=20to=20ganger?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/[step].tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);