We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d404311 commit 0b9c544Copy full SHA for 0b9c544
components/projects/CreateProject/CreateProjectForm.tsx
@@ -163,6 +163,7 @@ export const CreateProjectForm = ({
163
handleChange,
164
setFieldValue,
165
values,
166
+ touched,
167
}) => (
168
<Form style={{ marginTop: theme.spacing() }}>
169
<FormControl
@@ -200,6 +201,8 @@ export const CreateProjectForm = ({
200
201
handleChange(event);
202
if (event.target.value === ProductDetailFlavour.EVALUATION) {
203
void setFieldValue("isPrivate", false);
204
+ } else if (!touched.isPrivate) {
205
+ void setFieldValue("isPrivate", isPrivateDefaultValues[defaultPrivacy]);
206
}
207
}}
208
>
0 commit comments