fix: error message showing up on empty error object
This commit is contained in:
parent
e26e8c69fd
commit
d10831e808
1 changed files with 1 additions and 1 deletions
|
|
@ -237,7 +237,7 @@ const Wizard = ({
|
|||
<Form className={classes.form} id={'custom-requirement-form'}>
|
||||
<stepOptions.Component />
|
||||
<div className={classes.submit}>
|
||||
{(hasError || errors) && (
|
||||
{(hasError || !R.isEmpty(errors)) && (
|
||||
<ErrorMessage>
|
||||
{R.head(R.values(errors)) ?? `Failed to save`}
|
||||
</ErrorMessage>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue