From 4fa576cb3057b857ac372809c4f9c8f883f6c380 Mon Sep 17 00:00:00 2001
From: Eric Bailey <git@esb.lol>
Date: Fri, 22 Sep 2023 09:24:48 -0500
Subject: update translator link show logic

---
 src/view/com/post-thread/PostThreadItem.tsx | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'src/view/com/post-thread/PostThreadItem.tsx')

diff --git a/src/view/com/post-thread/PostThreadItem.tsx b/src/view/com/post-thread/PostThreadItem.tsx
index 5f1723745..cff7ad61e 100644
--- a/src/view/com/post-thread/PostThreadItem.tsx
+++ b/src/view/com/post-thread/PostThreadItem.tsx
@@ -81,9 +81,9 @@ export const PostThreadItem = observer(function PostThreadItem({
   )
   const needsTranslation = useMemo(
     () =>
-      store.preferences.contentLanguages.length > 0 &&
-      !isPostInLanguage(item.post, store.preferences.contentLanguages),
-    [item.post, store.preferences.contentLanguages],
+      store.preferences.primaryLanguage &&
+      !isPostInLanguage(item.post, [store.preferences.primaryLanguage]),
+    [item.post, store.preferences.primaryLanguage],
   )
 
   const onPressReply = React.useCallback(() => {
-- 
cgit 1.4.1


From 28f5a8e44d24122080589280e5ac3220dcc819ad Mon Sep 17 00:00:00 2001
From: Eric Bailey <git@esb.lol>
Date: Fri, 22 Sep 2023 09:46:46 -0500
Subject: bool

---
 src/view/com/post-thread/PostThreadItem.tsx | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

(limited to 'src/view/com/post-thread/PostThreadItem.tsx')

diff --git a/src/view/com/post-thread/PostThreadItem.tsx b/src/view/com/post-thread/PostThreadItem.tsx
index cff7ad61e..788ce96ad 100644
--- a/src/view/com/post-thread/PostThreadItem.tsx
+++ b/src/view/com/post-thread/PostThreadItem.tsx
@@ -81,8 +81,10 @@ export const PostThreadItem = observer(function PostThreadItem({
   )
   const needsTranslation = useMemo(
     () =>
-      store.preferences.primaryLanguage &&
-      !isPostInLanguage(item.post, [store.preferences.primaryLanguage]),
+      Boolean(
+        store.preferences.primaryLanguage &&
+          !isPostInLanguage(item.post, [store.preferences.primaryLanguage]),
+      ),
     [item.post, store.preferences.primaryLanguage],
   )
 
-- 
cgit 1.4.1

