From 0cf74f968279c47dfe5463be999319da87b24194 Mon Sep 17 00:00:00 2001 From: "ildar.timerbaev" Date: Sat, 9 Nov 2024 16:58:02 +0300 Subject: [PATCH] Added validation for max tags in a submit page --- src/app/submit/_page.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/app/submit/_page.tsx b/src/app/submit/_page.tsx index cb10fc133..2713347e5 100644 --- a/src/app/submit/_page.tsx +++ b/src/app/submit/_page.tsx @@ -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; };