Ensure the 'creator link' in the profile menu is hidden when no creator is associated

This commit is contained in:
Jonathan Bourdon
2024-08-04 21:52:55 -04:00
parent 90a5297a31
commit 811507c612

View File

@@ -77,7 +77,7 @@
</template> </template>
<template v-else> <template v-else>
<v-list-item v-if="userStore.creator" class="nav-button"> <v-list-item v-if="userStore.creator && Object.keys(userStore.creator).length > 0" class="nav-button">
<router-link :to="`/@${userStore.creator.name}`"> <router-link :to="`/@${userStore.creator.name}`">
<v-btn class="w-100 " variant="plain">@{{ userStore.creator.name }}</v-btn> <v-btn class="w-100 " variant="plain">@{{ userStore.creator.name }}</v-btn>
</router-link> </router-link>