We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8a36593 + cd57245 commit 4e27de3Copy full SHA for 4e27de3
src/components/users/UserPosts.vue
@@ -2,11 +2,11 @@
2
<div class="user-profile-posts">
3
<div class="table-actions">
4
<button @click="toggleThreads(true)" :class="{'active': threads}">
5
- <strong>Threads </strong> <span class="username">by {{username}}</span>
+ <strong>Threads </strong> <span v-if="user?.username" class="username">by {{user.username}}</span>
6
</button>
7
8
<button @click="toggleThreads(false)" :class="{'active': !threads}">
9
- <strong>Posts </strong> <span class="username">by {{username}}</span>
+ <strong>Posts </strong> <span v-if="user?.username" class="username">by {{user.username}}</span>
10
11
</div>
12
0 commit comments