mirror of
https://github.com/tooot-app/app
synced 2025-03-14 02:20:13 +01:00
Fix #594
This commit is contained in:
parent
e95f1e8157
commit
047464a9c1
@ -218,7 +218,7 @@ const ParseHTML = React.memo(
|
||||
if (children) {
|
||||
return (
|
||||
<ParseEmojis
|
||||
content={children.toString()}
|
||||
content={children?.toString()}
|
||||
emojis={emojis}
|
||||
size={size}
|
||||
adaptiveSize={adaptiveSize}
|
||||
|
@ -54,7 +54,7 @@ const TimelineTranslate = () => {
|
||||
<CustomText fontStyle='S' style={{ color: colors.secondary }}>{` Source: ${
|
||||
detected?.language
|
||||
}; Confidence: ${
|
||||
detected?.confidence.toString().slice(0, 5) || 'null'
|
||||
detected?.confidence?.toString().slice(0, 5) || 'null'
|
||||
}; Target: ${targetLanguage}`}</CustomText>
|
||||
) : null
|
||||
}
|
||||
|
@ -196,7 +196,7 @@ const ComposeDraftsList: React.FC<ScreenComposeStackScreenProps<'Screen-Compose-
|
||||
rightOpenValue={-actionWidth}
|
||||
previewOpenValue={-actionWidth / 2}
|
||||
ItemSeparatorComponent={ComponentSeparator}
|
||||
keyExtractor={item => item.timestamp.toString()}
|
||||
keyExtractor={item => item.timestamp?.toString()}
|
||||
/>
|
||||
</PanGestureHandler>
|
||||
<Modal
|
||||
|
@ -43,11 +43,11 @@ const composePost = async (
|
||||
e => e && e.length && formData.append('poll[options][]', e)
|
||||
)
|
||||
formData.append('poll[expires_in]', composeState.poll.expire)
|
||||
formData.append('poll[multiple]', composeState.poll.multiple.toString())
|
||||
formData.append('poll[multiple]', composeState.poll.multiple?.toString())
|
||||
}
|
||||
|
||||
if (composeState.attachments.uploads.filter(upload => upload.remote && upload.remote.id).length) {
|
||||
formData.append('sensitive', composeState.attachments.sensitive.toString())
|
||||
formData.append('sensitive', composeState.attachments.sensitive?.toString())
|
||||
composeState.attachments.uploads.forEach(e => formData.append('media_ids[]', e.remote!.id!))
|
||||
}
|
||||
|
||||
|
@ -115,7 +115,11 @@ const Collections: React.FC = () => {
|
||||
iconFront={instancePush ? 'Bell' : 'BellOff'}
|
||||
iconBack='ChevronRight'
|
||||
title={t('me.stacks.push.name')}
|
||||
content={t('me.root.push.content', { context: instancePush.global.toString() })}
|
||||
content={
|
||||
typeof instancePush.global === 'boolean'
|
||||
? t('me.root.push.content', { context: instancePush.global.toString() })
|
||||
: undefined
|
||||
}
|
||||
onPress={() => navigation.navigate('Tab-Me-Push')}
|
||||
/>
|
||||
</MenuContainer>
|
||||
|
Loading…
x
Reference in New Issue
Block a user