Skip to content

Commit

Permalink
Disallow decimal numbers in ballot submission
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnGuilding committed Sep 2, 2024
1 parent 599421d commit 9bb3bae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export const AllocationInput = ({
render={({ field }) => (
<NumericFormat
allowNegative={false}
decimalScale={0}
aria-label="allocation-input"
customInput={Input}
error={props.error}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ export const VotingWidget = ({ projectId }: IVotingWidgetProps): JSX.Element =>
<div className="flex items-center justify-center gap-5 rounded-xl border border-gray-200 p-5 dark:border-gray-800">
<NumericFormat
allowNegative={false}
decimalScale={0}
aria-label="allocation-input"
autoComplete="off"
className="dark:bg-lightBlack w-auto dark:text-white"
Expand Down

0 comments on commit 9bb3bae

Please sign in to comment.