From 174bcfce1de281cc4b020effe55fa2527c78df84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Ferreiro?= Date: Tue, 6 Dec 2022 11:16:41 +0000 Subject: [PATCH] remove unecessary computed --- src/state/models/profile-view.ts | 8 -------- src/view/com/util/UserAvatar.tsx | 4 ++-- src/view/com/util/UserBanner.tsx | 4 ++-- 3 files changed, 4 insertions(+), 12 deletions(-) diff --git a/src/state/models/profile-view.ts b/src/state/models/profile-view.ts index 013a1b04fc..60d9067576 100644 --- a/src/state/models/profile-view.ts +++ b/src/state/models/profile-view.ts @@ -86,14 +86,6 @@ export class ProfileViewModel { return this.declaration.actorType === ACTOR_TYPE_SCENE } - get userAvatarPath() { - return this.userAvatar?.path - } - - get userBannerPath() { - return this.userBanner?.path - } - // public api // = diff --git a/src/view/com/util/UserAvatar.tsx b/src/view/com/util/UserAvatar.tsx index 566d4f6c90..95c70c32db 100644 --- a/src/view/com/util/UserAvatar.tsx +++ b/src/view/com/util/UserAvatar.tsx @@ -94,7 +94,7 @@ export function UserAvatar({ {profileView.userAvatar != null ? ( ) : ( renderSvg(size, initials) @@ -111,7 +111,7 @@ export function UserAvatar({ ) : ( renderSvg(size, initials) diff --git a/src/view/com/util/UserBanner.tsx b/src/view/com/util/UserBanner.tsx index db37beb5d3..710463e976 100644 --- a/src/view/com/util/UserBanner.tsx +++ b/src/view/com/util/UserBanner.tsx @@ -84,7 +84,7 @@ export function UserBanner({ ) : ( renderSvg() @@ -101,7 +101,7 @@ export function UserBanner({ ) : ( renderSvg()