Skip to content

Commit 55eb48b

Browse files
committed
fix(rank): only display rank if user.metadata is present
1 parent 36cfb1d commit 55eb48b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/views/Profile.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
<span class="username-screen" v-html="user.name"></span>
4040
<span class="user-role" :style="{ 'background-color': user.role_highlight_color ? user.role_highlight_color : 'grey' }" v-html="user.role_name"></span>
4141
<span class="user-rank">
42-
<rank-display :user="user" />
42+
<rank-display v-if="user.metadata" :user="user" />
4343
</span>
4444
</div>
4545

0 commit comments

Comments
 (0)