Skip to content

Commit 4e27de3

Browse files
authored
Merge pull request #70 from epochtalk/profile-username-case
Profile Username
2 parents 8a36593 + cd57245 commit 4e27de3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/users/UserPosts.vue

+2-2
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)