From 4fa576cb3057b857ac372809c4f9c8f883f6c380 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Fri, 22 Sep 2023 09:24:48 -0500 Subject: [PATCH] update translator link show logic --- src/view/com/post-thread/PostThreadItem.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/view/com/post-thread/PostThreadItem.tsx b/src/view/com/post-thread/PostThreadItem.tsx index 5f172374..cff7ad61 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(() => {