Description of the bug
The app fails to advance from "Identite" step in certain situations during beneficiary registration process.
To reproduce the bug
Begin Patient registration process
Advance to Summary / "Details du Patient" step.
Click the back arrow next to "Details du Patient"
This takes you back to step 1 "Add a beneficiary" [Note: we should be consistent with use of terms (e.g., beneficiary vs patient). Let's use beneficiary throughout (replace patient with beneficiary)]
click "add beneficiary"
this advances to the step to enter beneficiary info. All info is autofilled from previous beneficiary information except for "Choisissez le pays"
Re-select country
Click Suivant [the app does not advance]
Expected behavior
The app should advance at step 8 above.
This happens because once you advance to pay screen, the patient is inserted into the DB. when you go back, the patient already exists, so it cannot be added again. This is visible on desktop, but the error message does not seem to be seen on mobile version.
Fixing:
adding a way to edit the added patient ( keeping the patient id in react frontend when going back ) then update it instead of inserting it.
Description of the bug The app fails to advance from "Identite" step in certain situations during beneficiary registration process.
To reproduce the bug
Expected behavior The app should advance at step 8 above.
Screenshots Here's a link to a video of the issue: https://drive.google.com/drive/u/1/folders/1D1_gWniaYmZzRQnSBkwOufIzdKjImsrI
Smartphone (please complete the following information):