Skip to content

Commit cd57245

Browse files
committed
refactor(profile-username): Updated to use user.username instead of props username to handle correct name and case
1 parent 8a36593 commit cd57245

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/users/UserPosts.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
<div class="user-profile-posts">
33
<div class="table-actions">
44
<button @click="toggleThreads(true)" :class="{'active': threads}">
5-
<strong>Threads&nbsp;</strong> <span class="username">by {{username}}</span>
5+
<strong>Threads&nbsp;</strong> <span v-if="user?.username" class="username">by {{user.username}}</span>
66
</button>
77

88
<button @click="toggleThreads(false)" :class="{'active': !threads}">
9-
<strong>Posts&nbsp;</strong> <span class="username">by {{username}}</span>
9+
<strong>Posts&nbsp;</strong> <span v-if="user?.username" class="username">by {{user.username}}</span>
1010
</button>
1111
</div>
1212

0 commit comments

Comments
 (0)