diff --git a/core/src/containers/forms/country-form/create-country-form/CreateCountryForm.tsx b/core/src/containers/forms/country-form/create-country-form/CreateCountryForm.tsx index 22190ca..784b41c 100644 --- a/core/src/containers/forms/country-form/create-country-form/CreateCountryForm.tsx +++ b/core/src/containers/forms/country-form/create-country-form/CreateCountryForm.tsx @@ -49,6 +49,8 @@ const CreateCountryForm: FC = ({ onSuccess }) => { resolver: yupResolver(createCountryValidationSchema), }) + const errorMsg = Object.values(errors)[0]?.message + const handleTagsChange = (tags: string[]) => { setValue("searchTags", tags, { shouldDirty: true }) } @@ -118,6 +120,9 @@ const CreateCountryForm: FC = ({ onSuccess }) => { +

+ {errorMsg ? errorMsg : <> } +