Skip to content

Commit

Permalink
Merge pull request #4 from odanilo/pr/welcome-message
Browse files Browse the repository at this point in the history
fix: welcome message displaying 'null'
  • Loading branch information
BernardoSM authored Sep 19, 2023
2 parents 29f3806 + 4ef2dbf commit 374fcf0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions apps/app/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
const userStore = useUserStore();
const title = computed(() => {
return `Bem-vindo${userStore.user ? ` ${userStore.user?.firstName}` : ""}, o
que vamos aprender hoje?`;
return `Bem-vindo${
userStore.user?.firstName ? `, ${userStore.user.firstName}` : ""
}, o que vamos aprender hoje?`;
});
const description =
Expand Down

0 comments on commit 374fcf0

Please sign in to comment.