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( const needsTranslation = useMemo(
() => () =>
store.preferences.contentLanguages.length > 0 && store.preferences.primaryLanguage &&
!isPostInLanguage(item.post, store.preferences.contentLanguages), !isPostInLanguage(item.post, [store.preferences.primaryLanguage]),
[item.post, store.preferences.contentLanguages], [item.post, store.preferences.primaryLanguage],
) )
const onPressReply = React.useCallback(() => { const onPressReply = React.useCallback(() => {