Skip to content

Commit

Permalink
Merge pull request #296 from JohnGuilding/fix/no-decimal-number-in-ba…
Browse files Browse the repository at this point in the history
…llot

fix: disallow decimal numbers in ballot submission
  • Loading branch information
ctrlc03 authored Sep 2, 2024
2 parents 599421d + bab8581 commit e1700ba
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"

Check failure on line 34 in packages/interface/src/features/ballot/components/AllocationInput.tsx

View workflow job for this annotation

GitHub Actions / check (lint:ts)

Props should be sorted alphabetically
customInput={Input}

Check failure on line 35 in packages/interface/src/features/ballot/components/AllocationInput.tsx

View workflow job for this annotation

GitHub Actions / check (lint:ts)

Props should be sorted alphabetically
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"

Check failure on line 77 in packages/interface/src/features/projects/components/VotingWidget.tsx

View workflow job for this annotation

GitHub Actions / check (lint:ts)

Props should be sorted alphabetically
autoComplete="off"

Check failure on line 78 in packages/interface/src/features/projects/components/VotingWidget.tsx

View workflow job for this annotation

GitHub Actions / check (lint:ts)

Props should be sorted alphabetically
className="dark:bg-lightBlack w-auto dark:text-white"

Check failure on line 79 in packages/interface/src/features/projects/components/VotingWidget.tsx

View workflow job for this annotation

GitHub Actions / check (lint:ts)

Props should be sorted alphabetically
Expand Down

0 comments on commit e1700ba

Please sign in to comment.