remove unecessary computed

This commit is contained in:
João Ferreiro
2022-12-06 11:16:41 +00:00
parent 8d98c99705
commit 174bcfce1d
3 changed files with 4 additions and 12 deletions
-8
View File
@@ -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
// =
+2 -2
View File
@@ -94,7 +94,7 @@ export function UserAvatar({
{profileView.userAvatar != null ? (
<Image
style={styles.avatarImage}
source={{uri: profileView.userAvatarPath}}
source={{uri: profileView.userAvatar.path}}
/>
) : (
renderSvg(size, initials)
@@ -111,7 +111,7 @@ export function UserAvatar({
<Image
style={styles.avatarImage}
resizeMode="stretch"
source={{uri: profileView.userAvatarPath}}
source={{uri: profileView.userAvatar.path}}
/>
) : (
renderSvg(size, initials)
+2 -2
View File
@@ -84,7 +84,7 @@ export function UserBanner({
<Image
style={styles.bannerImage}
resizeMode="stretch"
source={{uri: profileView.userBannerPath}}
source={{uri: profileView.userBanner.path}}
/>
) : (
renderSvg()
@@ -101,7 +101,7 @@ export function UserBanner({
<Image
style={styles.bannerImage}
resizeMode="stretch"
source={{uri: profileView.userBannerPath}}
source={{uri: profileView.userBanner.path}}
/>
) : (
renderSvg()