diff --git a/packages/lib-user/src/components/shared/GroupForm/GroupForm.js b/packages/lib-user/src/components/shared/GroupForm/GroupForm.js index 2ba79c1695..4e5aa890e9 100644 --- a/packages/lib-user/src/components/shared/GroupForm/GroupForm.js +++ b/packages/lib-user/src/components/shared/GroupForm/GroupForm.js @@ -56,6 +56,7 @@ function GroupForm({ const [value, setValue] = useState(defaultValue) const statsVisibilityOptions = value.visibility === 'Private' ? PRIVATE_STATS_VISIBILITY : PUBLIC_STATS_VISIBILITY + const selectedVisibilityOption = statsVisibilityOptions.find((option) => option.value === value.stats_visibility) useEffect(() => { setValue(defaultValue) @@ -64,11 +65,12 @@ function GroupForm({ return (