Skip to content

Commit

Permalink
💄 [open-formulieren/open-forms#5046] Remove login buttons when submis…
Browse files Browse the repository at this point in the history
…sion limit is reached

Doesn't make much sense to show these buttons if users are unable to start a form because the submission limit has been reached.
  • Loading branch information
viktorvanwijk committed Feb 6, 2025
1 parent c1f7d7e commit 78fbd8d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/FormStart/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -172,15 +172,17 @@ const FormStart = () => {
onDestroySession={onDestroySession}
isAuthenticated={isAuthenticated}
/>
) : (
) : !form.submissionLimitReached ? (
// if there is no active submission, only show the login options if the submission limit
// has not been reached.
<LoginOptions
// if cosign allows links in emails, we don't need to display the cosign
// login options, so strip them out
form={form.cosignHasLinkInEmail ? {...form, cosignLoginOptions: []} : form}
onFormStart={onFormStart}
extraNextParams={extraNextParams}
/>
)}
) : null}
</Card>
</LiteralsProvider>
);
Expand Down

0 comments on commit 78fbd8d

Please sign in to comment.