Use required attribute for required fields in my account
[arvados.git] / src / views / my-account-panel / my-account-panel-root.tsx
index c92c48df29bb25322f1f831e9bcdcdfbedbc2493..e6a2763553a9548e8f3f897cad9167efcafb9248 100644 (file)
@@ -99,10 +99,11 @@ export const MyAccountPanelRoot = withStyles(styles)(
                             </Grid>
                             <Grid item className={classes.gridItem}>
                                 <Field
-                                    label="*Organization"
+                                    label="Organization"
                                     name="prefs.profile.organization"
                                     component={TextField}
                                     validate={MY_ACCOUNT_VALIDATION}
+                                    required
                                 />
                             </Grid>
                             <Grid item className={classes.gridItem}>
@@ -135,10 +136,11 @@ export const MyAccountPanelRoot = withStyles(styles)(
                             <Grid item className={classes.gridItem} />
                             <Grid item className={classes.gridItem}>
                                 <Field
-                                    label="*E-mail at Organization"
+                                    label="E-mail at Organization"
                                     name="prefs.profile.organization_email"
                                     component={TextField}
                                     validate={MY_ACCOUNT_VALIDATION}
+                                    required
                                 />
                             </Grid>
                         </Grid>