From da758ba7120f6002ed65581d7329e4227c5f3304 Mon Sep 17 00:00:00 2001 From: Ammar Bandukwala Date: Wed, 16 Nov 2022 12:20:07 -0600 Subject: [PATCH] site: fix quota_allowance == 0 bug (#5108) --- site/src/pages/GroupsPage/SettingsGroupPageView.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/src/pages/GroupsPage/SettingsGroupPageView.tsx b/site/src/pages/GroupsPage/SettingsGroupPageView.tsx index 3e9c33efb8..80c08296b8 100644 --- a/site/src/pages/GroupsPage/SettingsGroupPageView.tsx +++ b/site/src/pages/GroupsPage/SettingsGroupPageView.tsx @@ -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<{