mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 01:46:07 +00:00
treat users emailContact as optional
This commit is contained in:
parent
b3bb91bd20
commit
2ed44c315a
@ -106,7 +106,7 @@ export class GmsUser {
|
||||
}
|
||||
|
||||
private getGmsEmail(user: dbUser): string | undefined {
|
||||
if (user.gmsAllowed && user.emailContact.gmsPublishEmail) {
|
||||
if (user.gmsAllowed && user.emailContact?.gmsPublishEmail) {
|
||||
return user.emailContact.email
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user