Skip to content

Commit

Permalink
fix minimun conviction input in PoolForm to allow 0 value
Browse files Browse the repository at this point in the history
  • Loading branch information
Mati0x committed Dec 6, 2024
1 parent 6aef390 commit 6d89d21
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions apps/web/components/Forms/PoolForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -931,7 +931,6 @@ export function PoolForm({ token, communityAddr }: Props) {
tooltip="% of Pool's voting weight needed to pass the smallest funding proposal possible. Higher funding requests demand greater conviction to pass."
label="Minimum conviction"
register={register}
required
errors={errors}
registerKey="minimumConviction"
type="number"
Expand All @@ -940,17 +939,12 @@ export function PoolForm({ token, communityAddr }: Props) {
className="pr-14"
otherProps={{
step: 1 / CV_SCALE_PRECISION,
min: 1 / CV_SCALE_PRECISION,
}}
registerOptions={{
max: {
value: 99.9,
message: "Minimum conviction should be under 100%",
},
min: {
value: 1 / CV_SCALE_PRECISION,
message: "Minimum conviction must be greater than 0",
},
}}
suffix="%"
/>
Expand Down

0 comments on commit 6d89d21

Please sign in to comment.