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

Make error object as optional

This commit is contained in:
Zhiyuan Zheng
2022-05-17 23:18:49 +02:00
parent 4b3b222582
commit 02360c443f
5 changed files with 15 additions and 33 deletions

View File

@ -35,7 +35,7 @@ const pushUseConnect = ({ t, instances }: Params) => {
url: `push/connect/${expoToken}`,
sentry: true
}).catch(error => {
if (error.status == 404) {
if (error?.status == 404) {
displayMessage({
theme,
type: 'error',