Fix possible undefined

This commit is contained in:
Zhiyuan Zheng 2022-05-17 23:12:43 +02:00
parent 94e9e023e3
commit 5d615174cb
1 changed files with 1 additions and 1 deletions

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'),