Skip to content

Commit

Permalink
Merge pull request #97 from amansinghbais/user-image-loading-fix
Browse files Browse the repository at this point in the history
Fixed: user image not loading on userProfile card due to wrong image url
  • Loading branch information
ymaheshwari1 authored Mar 19, 2024
2 parents 903abc5 + 5151d22 commit 222f612
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 222f612

Please sign in to comment.