Skip to content

Commit

Permalink
Fix seoform title length check (#4237)
Browse files Browse the repository at this point in the history
  • Loading branch information
poulch authored Sep 25, 2023
1 parent 2864fea commit f4d96b0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/tame-sheep-wink.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"saleor-dashboard": patch
---

Fix check title length in SeoForm component
2 changes: 1 addition & 1 deletion src/components/SeoForm/SeoForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export const SeoForm: React.FC<SeoFormProps> = props => {
};

const completed =
slug?.length > 0 && title.length > 0 && description?.length > 0;
slug?.length > 0 && title?.length > 0 && description?.length > 0;

const getError = (fieldName: SeoField) => getFieldError(errors, fieldName);

Expand Down

0 comments on commit f4d96b0

Please sign in to comment.