update translator link show logic

zio/stable
Eric Bailey 2023-09-22 09:24:48 -05:00
parent 146132a080
commit 4fa576cb30
1 changed files with 3 additions and 3 deletions

View File

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