1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00

Fix possible undefined

This commit is contained in:
Zhiyuan Zheng
2022-05-17 23:12:43 +02:00
parent 94e9e023e3
commit 5d615174cb

View File

@ -354,7 +354,7 @@ const ScreenCompose: React.FC<RootStackScreenProps<'Screen-Compose'>> = ({
navigation.goBack() navigation.goBack()
}) })
.catch(error => { .catch(error => {
if (error.removeReply) { if (error?.removeReply) {
Alert.alert( Alert.alert(
t('heading.right.alert.removeReply.title'), t('heading.right.alert.removeReply.title'),
t('heading.right.alert.removeReply.description'), t('heading.right.alert.removeReply.description'),