Skip to content

Commit

Permalink
Prøver med async på knapp for å ikke trigge sending to ganger
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbjoern committed Jun 4, 2024
1 parent d587c11 commit 10dcf4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pages/[step].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,9 @@ const Steps = ({ person, mellomlagretSøknad, kontaktinformasjon, barn, fastlege
)}
<SoknadUtenVedleggModal
showModal={showVedleggErrorMessage}
onSendSoknad={() => {
onSendSoknad={async () => {
await removeAllVedleggFromSoknadAndSubmit();
setShowVedleggErrorMessage(false);
removeAllVedleggFromSoknadAndSubmit();
}}
onClose={() => {
setShowVedleggErrorMessage(false);
Expand Down

0 comments on commit 10dcf4d

Please sign in to comment.