eoscostarica / lifebank

An incentive-based EOSIO blockchain solution for blood donations :heart:
https://lifebank.io
MIT License
15 stars 16 forks source link

feat(frontend): add hasura mutation to change email subscription flag #777

Closed leisterfrancisco closed 3 years ago

leisterfrancisco commented 3 years ago

Resolves #698 Resolves #699
Resolves #700

What does this PR do?

Add route to change email subscription

How should this be tested?

Edgar097 commented 3 years ago

@leisterfrancisco If i'm not log in and I type http://localhost:3000/cancel-email-subscription/:account it let me unsuscribe, i get a error snackbar and then the page location change to. image

Just for you to know Also the email subscription is not changing at least for donors getting the same snackbar error image image

leisterfrancisco commented 3 years ago

Email subscription flag not changing in the database

@Edgar097 your fail case is working perfectly to me, did you rerun the project with make run