Skip to content

Commit

Permalink
fix store getter
Browse files Browse the repository at this point in the history
  • Loading branch information
Šimon Macek committed Sep 5, 2024
1 parent 97b9f7e commit b6fb3e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/homepage/NewsletterFeature.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
// libraries
import { Screen } from 'quasar';
import { computed, defineComponent } from 'vue';
import { computed, defineComponent, reactive } from 'vue';
// components
import NewsletterItem from './NewsletterItem.vue';
Expand Down Expand Up @@ -54,7 +54,7 @@ export default defineComponent({
},
setup(props) {
const loginStore = useLoginStore();
const userEmail = loginStore.getUser.email;
const user = reactive(loginStore.getUser);
const newsletterTitle = computed(() => {
return props.title
Expand All @@ -66,7 +66,7 @@ export default defineComponent({
return props.description
? props.description
: i18n.global.t('index.newsletterFeature.description', {
email: userEmail ? ` <b>${userEmail}</b>` : '',
email: user?.email ? ` <b>${user.email}</b>` : '',
});
});
Expand Down

0 comments on commit b6fb3e7

Please sign in to comment.