Skip to content

Commit

Permalink
fix(#2044): fix missing validation for url length
Browse files Browse the repository at this point in the history
  • Loading branch information
MSzalowski committed Dec 13, 2024
1 parent 32a3f8b commit 02bfc72
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 @@ -17,6 +17,7 @@ changes.
### Fixed

- Fix mzero parsing error on fetching the /proposal/list [Issue 2446](https://github.com/IntersectMBO/govtool/issues/2446)
- 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 02bfc72

Please sign in to comment.