diff --git a/src/components/users/modals/UserMenuModal.tsx b/src/components/users/modals/UserMenuModal.tsx index 5c14c75..0624f3a 100644 --- a/src/components/users/modals/UserMenuModal.tsx +++ b/src/components/users/modals/UserMenuModal.tsx @@ -52,6 +52,7 @@ export default function UserMenuModal() { initialValues: { sn: user?.sn ?? "", givenName: user?.givenName ?? "", + muteEmailNotifications: user?.muteEmailNotifications ?? false }, validate: { sn: isNotEmpty('Bitte gebe deinen Nachnamen ein'), @@ -157,9 +158,9 @@ export default function UserMenuModal() { - {(user?.memberOf?.length ?? 0) > 0 && <> + {user?.expand?.memberOf !== undefined && <>