Fix prod nginx

This commit is contained in:
2023-09-20 14:46:35 +02:00
committed by Clément Le Bihan
parent ee8e0e26db
commit 7aa7f50ecb
8 changed files with 21 additions and 11 deletions

View File

@@ -62,7 +62,19 @@ const ProfileSettings = ({ navigation }: { navigation: any }) => {
text: user.emailVerified ? 'verified' : 'not verified',
onPress: user.emailVerified
? undefined
: () => API.fetch({ route: '/auth/reverify', method: 'PUT' }),
: () =>
API.fetch({ route: '/auth/reverify', method: 'PUT' })
.then(() =>
Toast.show({
description: 'Verification mail sent',
})
)
.catch((e) => {
console.error(e);
Toast.show({
description: 'Verification mail send error',
});
}),
},
},
{