Skip to content

Commit

Permalink
Merge pull request #2499 from IntersectMBO/fix/2044-no-validation-on-…
Browse files Browse the repository at this point in the history
…metadata-url-length-for-votes

fix(#2044): fix missing validation for url length
  • Loading branch information
MSzalowski authored Dec 13, 2024
2 parents 8620468 + e40cfae commit 91c3725
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ changes.

- Fix mzero parsing error on fetching the /proposal/list [Issue 2446](https://github.com/IntersectMBO/govtool/issues/2446)
- Fix scaling gov action votes on lower resolutions
- Fix storing url missing length validation [Issue 2044](https://github.com/IntersectMBO/govtool/issues/2044)

### Changed

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { ICONS } from "@consts";
import { useTranslation, useScreenDimension, useVoteContextForm } from "@hooks";
import { Step } from "@molecules";
import { ControlledField, VoteContextWrapper } from "@organisms";
import { URL_REGEX, openInNewTab } from "@utils";
import { URL_REGEX, isValidURLLength, openInNewTab } from "@utils";
import { LINKS } from "@/consts/links";

type VoteContextStoringInformationProps = {
Expand Down Expand Up @@ -144,6 +144,7 @@ export const VoteContextStoringInformation = ({
value: URL_REGEX,
message: t("createGovernanceAction.fields.validations.url"),
},
validate: isValidURLLength,
}}
/>
}
Expand Down

0 comments on commit 91c3725

Please sign in to comment.