Skip to content

Commit

Permalink
Merge pull request #1513 from bluesky-social/eric/app-855-update-lang…
Browse files Browse the repository at this point in the history
…uage-settings-in-app

update translator link show logic
  • Loading branch information
estrattonbailey authored Sep 22, 2023
2 parents 146132a + 28f5a8e commit 1b3b4c6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/view/com/post-thread/PostThreadItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,11 @@ 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],
Boolean(
store.preferences.primaryLanguage &&
!isPostInLanguage(item.post, [store.preferences.primaryLanguage]),
),
[item.post, store.preferences.primaryLanguage],
)

const onPressReply = React.useCallback(() => {
Expand Down

0 comments on commit 1b3b4c6

Please sign in to comment.