diff --git a/webapp/src/components/group/GroupCreationModal.tsx b/webapp/src/components/group/GroupCreationModal.tsx index 564112c..ea32036 100644 --- a/webapp/src/components/group/GroupCreationModal.tsx +++ b/webapp/src/components/group/GroupCreationModal.tsx @@ -26,7 +26,7 @@ export const CreationModal: FC = ({nowHasGroup, setError, toggleCre await axios.post(`${apiEndpoint}/createGroup`, { groupName, creatorUUID, description, isPublic }).then( res => { nowHasGroup(); }); - }catch (error:any) { + }catch (error: any) { setError(error.response.data.error); } } @@ -57,6 +57,7 @@ export const CreationModal: FC = ({nowHasGroup, setError, toggleCre

{t('create_group_group_name')}

= ({nowHasGroup, setError, toggleCre sx={{ display: 'flex', flexDirection: 'row', justifyContent: 'space-evenly', alignItems: 'center' }} onChange={(e) => setPublic(e.target.value === "yes")} > - } label={t('create_group_yes')} /> - } label={t('create_group_no')} /> + } label={t('create_group_yes')} /> + } label={t('create_group_no')} />
@@ -83,6 +84,7 @@ export const CreationModal: FC = ({nowHasGroup, setError, toggleCre

{t('create_group_description')}

= ({nowHasGroup, setError, toggleCre />
- +