This commit is contained in:
Zhiyuan Zheng 2021-03-20 19:41:46 +01:00
parent ec0faf7e7f
commit 69999dadb6
No known key found for this signature in database
GPG Key ID: 078A93AB607D85E0
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ const composePost = async (
url: `statuses/${composeState.replyToStatus.id}`
})
} catch (err) {
if (err.status == 404) {
if (err.status && err.status == 404) {
return Promise.reject({ removeReply: true })
}
}

View File

@ -94,7 +94,7 @@ const ScreenMeSettingsPush: React.FC = () => {
setPushEnabled(result.granted)
setPushCanAskAgain(result.canAskAgain)
} else {
Linking.openURL('app-settings:')
Linking.openSettings()
}
}}
/>