This commit is contained in:
Gautier Arcin
2021-08-19 16:10:42 +02:00
parent 95697e2491
commit ced3cd5f6b
6 changed files with 43 additions and 30 deletions

View File

@ -19,9 +19,11 @@ const FormSuscribe = () => {
method: 'POST',
})
// console.log('resultat : ', res)
const { error } = await res.json()
// console.log('error :', error)
if (error) {
console.log('error 2 : ', error)
setMessage('You are already subscribed!')
return
}