Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zly2006 committed Mar 14, 2024
1 parent 19fbb87 commit 9f80881
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/components/UserProfileCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,11 @@ function deleteAvatar() {
{{ user!.githubId }}
</a>
</span>
<span v-else>Account not linked</span>
<a v-if="canEdit" href="/api/oauth/github?redirect_url=/home"
>Link Now</a
>
<template v-else>
<span>Account not linked</span>
<!-- prettier-ignore -->
<a v-if="canEdit" href="/api/oauth/github?redirect_url=/home">Link Now</a>
</template>
</p>
<p v-if="user.preference.timezone" class="user-timezone">
<v-icon class="profile-item-icon">mdi-clock</v-icon>
Expand Down

0 comments on commit 9f80881

Please sign in to comment.