fix(vue): correct computed fn

This commit is contained in:
Kalista Payne
2026-06-04 15:47:38 -05:00
parent 24d53b43b1
commit ca4ec2ee45
2 changed files with 9 additions and 5 deletions
@@ -56,10 +56,15 @@ export default {
},
computed: {
...mapState({ user: 'user.data' }),
invitationInfo: {
usernameLink: `<a href="/profile/${this.notification.data.inviter}" target="_blank" rel="noreferrer noopener">@${this.invitingUser.auth ? this.invitingUser.auth.local.username : null}</a>`,
partyName: `<span class="notification-bold">${this.notification.data.name}</span>`,
},
invitationInfo () {
if (this.notification?.data) {
return {
usernameLink: `<a href="/profile/${this.notification.data.inviter}" target="_blank" rel="noreferrer noopener">@${this.invitingUser.auth ? this.invitingUser.auth.local.username : null}</a>`,
partyName: `<span class="notification-bold">${this.notification.data.name}</span>`,
};
}
return null;
}
},
async mounted () {
this.invitingUser = await this.$store.dispatch('members:fetchMember', {
-1
View File
@@ -19,7 +19,6 @@
<delete-task-confirm-modal v-if="isUserLoaded" />
<template v-if="isUserLoaded">
<privacy-banner />
<chat-banner />
<damage-paused-banner />
<gems-promo-banner />
<gift-promo-banner />