Merge pull request #1513 from bluesky-social/eric/app-855-update-language-settings-in-app

update translator link show logic
zio/stable
Eric Bailey 2023-09-22 10:22:28 -05:00 committed by GitHub
commit 1b3b4c6692
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 3 deletions

View File

@ -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(() => {