Skip to content
Snippets Groups Projects
Commit 9b1f2e54 authored by xaralis's avatar xaralis
Browse files

fix: announcement form validation bug

parent 1480c500
No related branches found
No related tags found
No related merge requests found
Pipeline #1860 passed
...@@ -43,7 +43,7 @@ const AddAnnouncementForm = ({ className }) => { ...@@ -43,7 +43,7 @@ const AddAnnouncementForm = ({ className }) => {
} }
if (!!text) { if (!!text) {
if (type === "voting" && link) { if (type === "voting" && link && linkValid) {
const result = await addAnnouncement.run({ content: text, link, type }); const result = await addAnnouncement.run({ content: text, link, type });
if (!result.error) { if (!result.error) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment