code4romania / onghub

Mozilla Public License 2.0
5 stars 5 forks source link

[NGO Registration] Errors in the form break the registration flow #472

Closed tudoramariei closed 3 months ago

tudoramariei commented 3 months ago

Describe the bug

When registering and doing a wrong action in the form (e.g., uploading the wrong type of file), the form throws an error, and it's difficult to continue. I reproduced the issue by uploading the wrong type of file and the only way to continue was going to step 1.

Steps to reproduce the behavior

  1. Register an organization with all the correct data until you reach the add a statute section in step 5
  2. Upload a file that is not a PDF
  3. Click send
  4. Once the error appears, click Try again
  5. This will show the form briefly and bring back the error
  6. Go to step 1
  7. Click Try again
  8. The form shows up again

Expected behavior

If someone clicks Try again, the form should show up, whatever step the user is on.

Screenshots

Steps 4-5 from the reproduction steps

https://github.com/code4romania/onghub/assets/2820084/6a5a8310-1daf-41e1-978a-dad5b91a6ce2

Steps 3-8 from the reproduction steps

https://github.com/code4romania/onghub/assets/2820084/6b06d812-3f8a-49e3-95f9-eb8f77aa8e08

tudoramariei commented 3 months ago

Closing since it's a duplicate of #436