1
0
mirror of https://github.com/tooot-app/app synced 2025-01-09 08:03:31 +01: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()
})
.catch(error => {
if (error.removeReply) {
if (error?.removeReply) {
Alert.alert(
t('heading.right.alert.removeReply.title'),
t('heading.right.alert.removeReply.description'),