diff --git a/components/profile/ProfileDetail.vue b/components/profile/ProfileDetail.vue index dca062fd11..f8130bde5b 100644 --- a/components/profile/ProfileDetail.vue +++ b/components/profile/ProfileDetail.vue @@ -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() @@ -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(() => hasProfile.value ? editProfileConfig : createProfileConfig,