Skip to content

Commit

Permalink
Try fix loading state in BrevForTilbakekreving component
Browse files Browse the repository at this point in the history
  • Loading branch information
RamziAbuQassim committed Jan 3, 2024
1 parent acae063 commit 48194d2
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,10 @@ const BrevForTilbakekreving = (props: {
})()}
<Navigasjonsknapper
neste={{
loading: RemoteData.isPending(saveBrevtekstStatus),
loading: form.formState.isSubmitting
? RemoteData.isPending(saveBrevtekstStatus) ||
RemoteData.isPending(saveNotatStatus)
: RemoteData.isPending(saveBrevtekstStatus),
}}
fortsettSenere={{
onClick: () => handleLagreOgFortsettSenereClick(form.getValues(), form.trigger),
Expand Down

0 comments on commit 48194d2

Please sign in to comment.