From d16f177496b6e98b7cda6ea068d27029df79d743 Mon Sep 17 00:00:00 2001 From: Tobias Kohr Date: Wed, 6 Dec 2023 15:51:09 +0100 Subject: [PATCH] fix(gravatar): fix for identicon undefined detected via e2e tests --- libs/api/repository/src/lib/gn4/auth/gravatar.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/api/repository/src/lib/gn4/auth/gravatar.service.ts b/libs/api/repository/src/lib/gn4/auth/gravatar.service.ts index 33af14ca8e..ce02bddb68 100644 --- a/libs/api/repository/src/lib/gn4/auth/gravatar.service.ts +++ b/libs/api/repository/src/lib/gn4/auth/gravatar.service.ts @@ -12,7 +12,7 @@ export class GravatarService implements AvatarServiceInterface { private GRAVATAR_IDENTICON = 'mp' private readonly identicon$ = this.gn4SettingsService.identicon$.pipe( - map((identicon) => identicon.replace('gravatar:', '')) + map((identicon) => identicon?.replace('gravatar:', '')) ) constructor(private gn4SettingsService: Gn4SettingsService) {}