diff --git a/components/account/AccountFollowButton.vue b/components/account/AccountFollowButton.vue index d64653e6..bd073df5 100644 --- a/components/account/AccountFollowButton.vue +++ b/components/account/AccountFollowButton.vue @@ -60,18 +60,14 @@ useCommand({ }) const buttonStyle = $computed(() => { - // Skeleton while loading, avoid primary color flash - if (!relationship) - return 'text-inverted' - - if (relationship.blocking) + if (relationship?.blocking) return 'text-inverted bg-red border-red' - if (relationship.muting) + if (relationship?.muting) return 'text-base bg-code border-base' // If following, use a label style with a strong border for Mutuals - if (relationship.following) + if (relationship?.following) return `text-base ${relationship.followedBy ? 'border-strong' : 'border-base'}` // If not following, use a button style @@ -99,7 +95,7 @@ const buttonStyle = $computed(() => {