The duplicate appointment issue is happening with the multiple clicks on the “Check and Save” Button. When we have low network speed, We are able to click the button multiple times which is actually making multiple create and save appointment calls. Eventually we end up creating duplicate appointments against a patient.
The fix for the issue is to disable the button upon one click. So that it will not allow multiple click and multiple api calls.
We were able to reproduce the issue by keeping the network speed to “Slow 3G” in the Network tab in the chrome dev tools.
PR Link →
has reviewed and approved the PR and got merged by to appointments-frontend master