update translator link show logic
parent
146132a080
commit
4fa576cb30
|
@ -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(() => {
|
||||||
|
|
Loading…
Reference in New Issue