From b713976afbe47d06941222ad462bc68b3decd723 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 27 Jun 2022 09:45:16 +0200 Subject: Fix comment add avatar when unlogged --- client/src/app/shared/shared-actor-image/actor-avatar.component.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'client/src/app/shared/shared-actor-image') diff --git a/client/src/app/shared/shared-actor-image/actor-avatar.component.ts b/client/src/app/shared/shared-actor-image/actor-avatar.component.ts index fa4f1e51f..fdc8268d8 100644 --- a/client/src/app/shared/shared-actor-image/actor-avatar.component.ts +++ b/client/src/app/shared/shared-actor-image/actor-avatar.component.ts @@ -52,8 +52,9 @@ export class ActorAvatarComponent implements OnChanges { } get defaultAvatarUrl () { - if (this.account) return Account.GET_DEFAULT_AVATAR_URL(this.getSizeNumber()) if (this.channel) return VideoChannel.GET_DEFAULT_AVATAR_URL(this.getSizeNumber()) + + return Account.GET_DEFAULT_AVATAR_URL(this.getSizeNumber()) } get avatarUrl () { -- cgit v1.2.3