Skip to content

Commit

Permalink
Trigger precheck validation after button click
Browse files Browse the repository at this point in the history
  • Loading branch information
lsolcher committed Sep 26, 2024
1 parent 59aad9c commit 9a78c55
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/dito/app/routes/vorpruefung.$questionId/route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,10 @@ export default function Index() {
setSelectedOption(
e.target.value as PreCheckAnswerOption["value"],
),
error: form.error("answer"),
error:
form.formState.submitStatus == "error"
? form.error("answer")
: undefined,
}}
/>
<Container paddingTop="0" paddingBottom="40">
Expand Down

0 comments on commit 9a78c55

Please sign in to comment.