diff --git a/src/components/UserInfo.vue b/src/components/UserInfo.vue index e3696f136..ed9bab1e6 100644 --- a/src/components/UserInfo.vue +++ b/src/components/UserInfo.vue @@ -1,12 +1,5 @@ @@ -256,9 +252,15 @@ export default { data() { return { maxLength: 250, + loading: false, userStats: null, editMode: false, - profile: null, + profile: { + biography: '', + createdAt: '', + location: '', + coverImage: '', + }, balance: '', BACKEND_URL: process.env.VUE_APP_BACKEND_URL, }; @@ -327,7 +329,6 @@ export default { () => this.reloadData(), { immediate: true }, ); - this.reloadBalance(); EventBus.$on('reloadData', () => { this.reloadData(); @@ -360,6 +361,7 @@ export default { await this.resetEditedValues(); }, async reloadData() { + this.loading = true; await Promise.all([ this.reloadProfile(), Backend.getSenderStats(this.address).then((stats) => { @@ -373,6 +375,7 @@ export default { }); })(), ]); + this.loading = false; }, async reloadProfile() { this.profile = await Backend.getProfile(this.address);