Skip to content

Commit

Permalink
Fixed: user image not loading on userProfile card due to wrong image url
Browse files Browse the repository at this point in the history
  • Loading branch information
amansinghbais committed Jan 30, 2024
1 parent 6e016b3 commit 5151d22
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/views/Settings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<ion-card>
<ion-item lines="full">
<ion-avatar slot="start" v-if="userProfile?.partyImageUrl">
<Image :src="getImageUrl(userProfile.partyImageUrl)"/>
<Image :src="userProfile.partyImageUrl"/>
</ion-avatar>
<!-- ion-no-padding to remove extra side/horizontal padding as additional padding
is added on sides from ion-item and ion-padding-vertical to compensate the removed
Expand Down Expand Up @@ -171,9 +171,6 @@ export default defineComponent({
component: TimezoneModal,
});
return timeZoneModal.present();
},
getImageUrl(imageUrl: string) {
return (this.baseUrl.startsWith('http') ? this.baseUrl.replace(/api\/?/, "") : `https://${this.baseUrl}.hotwax.io/`) + imageUrl
}
},
setup () {
Expand Down

0 comments on commit 5151d22

Please sign in to comment.