Skip to content

Commit

Permalink
fix(ProfileDetail.vue): can follow youself after prefix change
Browse files Browse the repository at this point in the history
  • Loading branch information
hassnian committed Sep 3, 2024
1 parent eb0a47c commit e32187d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/profile/ProfileDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ const route = useRoute()
const { $i18n } = useNuxtApp()
const { toast } = useToast()
const { replaceUrl } = useReplaceUrl()
const { accountId } = useAuth()
const { accountId, isCurrentOwner } = useAuth()
const { urlPrefix, client, setUrlPrefix } = usePrefix()
const { shareOnX, shareOnFarcaster } = useSocialShare()
const { redirectAfterChainChange } = useChainRedirect()
Expand Down Expand Up @@ -588,7 +588,7 @@ const socialDropdownItems = computed(() => {
.sort((a, b) => a?.order - b?.order)
})
const isOwner = computed(() => route.params.id === accountId.value)
const isOwner = computed(() => isCurrentOwner(id.value))
const buttonConfig = computed<ButtonConfig>(() =>
hasProfile.value ? editProfileConfig : createProfileConfig,
Expand Down

0 comments on commit e32187d

Please sign in to comment.