about summary refs log tree commit diff
path: root/src/components/ProfileCard.tsx
diff options
context:
space:
mode:
authorsurfdude29 <149612116+surfdude29@users.noreply.github.com>2025-08-22 21:00:00 +0200
committerGitHub <noreply@github.com>2025-08-22 12:00:00 -0700
commitf038ac70da530416161e870fbbbd42159cea2bbe (patch)
tree43dd81829db49cc0cca6d73aaac97cd80c02fff8 /src/components/ProfileCard.tsx
parente404ddfbcd3872f9e1165c0f43c4c4789f1b1434 (diff)
downloadvoidsky-f038ac70da530416161e870fbbbd42159cea2bbe.tar.zst
rearrange translation logic (#8880)
Diffstat (limited to 'src/components/ProfileCard.tsx')
-rw-r--r--src/components/ProfileCard.tsx19
1 files changed, 13 insertions, 6 deletions
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 (