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 10, 2024
1 parent 60c5196 commit 49e0660
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,24 @@ changes.

-

## [v1.0.31](https://github.com/IntersectMBO/govtool/releases/tag/v1.0.31)

### Added

-

### Fixed

- Fix storing url missing length validation [Issue 2044](https://github.com/IntersectMBO/govtool/issues/2044)

### Changed

-

### Removed

-

## [v1.0.30](https://github.com/IntersectMBO/govtool/releases/tag/v1.0.30) 2024-12-10

### Added
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 49e0660

Please sign in to comment.