Skip to content

Commit 02bfc72

Browse files
committed
fix(#2044): fix missing validation for url length
1 parent 32a3f8b commit 02bfc72

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ changes.
1717
### Fixed
1818

1919
- Fix mzero parsing error on fetching the /proposal/list [Issue 2446](https://github.com/IntersectMBO/govtool/issues/2446)
20+
- Fix storing url missing length validation [Issue 2044](https://github.com/IntersectMBO/govtool/issues/2044)
2021

2122
### Changed
2223

govtool/frontend/src/components/organisms/VoteContext/VoteContextStoringInformation.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { ICONS } from "@consts";
77
import { useTranslation, useScreenDimension, useVoteContextForm } from "@hooks";
88
import { Step } from "@molecules";
99
import { ControlledField, VoteContextWrapper } from "@organisms";
10-
import { URL_REGEX, openInNewTab } from "@utils";
10+
import { URL_REGEX, isValidURLLength, openInNewTab } from "@utils";
1111
import { LINKS } from "@/consts/links";
1212

1313
type VoteContextStoringInformationProps = {
@@ -144,6 +144,7 @@ export const VoteContextStoringInformation = ({
144144
value: URL_REGEX,
145145
message: t("createGovernanceAction.fields.validations.url"),
146146
},
147+
validate: isValidURLLength,
147148
}}
148149
/>
149150
}

0 commit comments

Comments
 (0)