mirror of
https://github.com/lukevella/rallly.git
synced 2025-08-06 09:59:00 +02:00
🐛 Only show error message when defined (#1236)
This commit is contained in:
parent
d1cde59d0e
commit
0daa9dc494
1 changed files with 1 additions and 1 deletions
|
@ -162,7 +162,7 @@ export const NewParticipantForm = (props: NewParticipantModalProps) => {
|
||||||
<label className="mb-1 text-gray-500">{t("response")}</label>
|
<label className="mb-1 text-gray-500">{t("response")}</label>
|
||||||
<VoteSummary votes={props.votes} />
|
<VoteSummary votes={props.votes} />
|
||||||
</fieldset>
|
</fieldset>
|
||||||
{formState.errors.root ? (
|
{formState.errors.root?.message ? (
|
||||||
<FormMessage>{formState.errors.root.message}</FormMessage>
|
<FormMessage>{formState.errors.root.message}</FormMessage>
|
||||||
) : null}
|
) : null}
|
||||||
<div className="flex gap-2">
|
<div className="flex gap-2">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue