mirror of
https://github.com/lukevella/rallly.git
synced 2025-08-02 07:58:57 +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>
|
||||
<VoteSummary votes={props.votes} />
|
||||
</fieldset>
|
||||
{formState.errors.root ? (
|
||||
{formState.errors.root?.message ? (
|
||||
<FormMessage>{formState.errors.root.message}</FormMessage>
|
||||
) : null}
|
||||
<div className="flex gap-2">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue