Skip to content

Commit

Permalink
site: fix quota_allowance == 0 bug (#5108)
Browse files Browse the repository at this point in the history
  • Loading branch information
ammario committed Nov 16, 2022
1 parent 894953d commit da758ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/src/pages/GroupsPage/SettingsGroupPageView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ type FormData = {

const validationSchema = Yup.object({
name: nameValidator("Name"),
quota_allowance: Yup.number().required().positive().integer(),
quota_allowance: Yup.number().required().min(0).integer(),
})

const UpdateGroupForm: React.FC<{
Expand Down

0 comments on commit da758ba

Please sign in to comment.