From f038ac70da530416161e870fbbbd42159cea2bbe Mon Sep 17 00:00:00 2001 From: surfdude29 <149612116+surfdude29@users.noreply.github.com> Date: Fri, 22 Aug 2025 21:00:00 +0200 Subject: rearrange translation logic (#8880) --- src/components/ProfileCard.tsx | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) (limited to 'src/components/ProfileCard.tsx') diff --git a/src/components/ProfileCard.tsx b/src/components/ProfileCard.tsx index d3a2b8f1f..095b62167 100644 --- a/src/components/ProfileCard.tsx +++ b/src/components/ProfileCard.tsx @@ -513,12 +513,19 @@ export function FollowButtonInner({ comment: 'User is following this account, click to unfollow', }), ) - const followLabel = _( - msg({ - message: profile.viewer?.followedBy ? 'Follow back' : 'Follow', - comment: 'User is not following this account, click to follow', - }), - ) + const followLabel = profile.viewer?.followedBy + ? _( + msg({ + message: 'Follow back', + comment: 'User is not following this account, click to follow back', + }), + ) + : _( + msg({ + message: 'Follow', + comment: 'User is not following this account, click to follow', + }), + ) if (!profile.viewer) return null if ( -- cgit 1.4.1