Skip to content

Commit

Permalink
Merge pull request #166 from ecency/bugfix/165-submit-page-11-tags-in…
Browse files Browse the repository at this point in the history
…stead-of-10

Added validation for max tags in a submit page
  • Loading branch information
feruzm authored Nov 9, 2024
2 parents 5e7cc92 + 0cf74f9 commit fd321ac
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/app/submit/_page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,11 @@ function Submit({ path, draftId, username, permlink, searchParams }: Props) {
return false;
}

if (tags.length > 10) {
error(i18next.t("tag-selector.error-max", { n: 10 }));
return false;
}

return true;
};

Expand Down

0 comments on commit fd321ac

Please sign in to comment.