This commit is contained in:
Magdalena Markusik 2020-09-24 15:31:29 +02:00
parent 2519ed9496
commit c0d02d6943

View file

@ -145,13 +145,13 @@ const SeoForm: React.FC<SeoFormProps> = props => {
}
if (error) {
return getSlugErrorHelperText();
return getSlugErrorText();
}
return "";
};
const getSlugErrorHelperText = () => {
const getSlugErrorText = () => {
const error = getError(SeoField.slug);
const { __typename: type } = error;