ohcnetwork / care_fe

Care is a Digital Public Good enabling TeleICU & Decentralised Administration of Healthcare Capacity across States.
https://care.ohc.network
MIT License
255 stars 441 forks source link

Captured Image Saved Unnecessarily When Clicking Retake in Camera Capture #9179

Open JavidSumra opened 6 hours ago

JavidSumra commented 6 hours ago

Bug Description

When clicking "Retake" in the camera capture section of the patient file upload, the captured file is unnecessarily saved.


Steps to Reproduce

  1. Navigate to /patients.
  2. Open any patient's details.
  3. Scroll down to the "Upload Files" section and click on it.
  4. Select "Upload Camera."
  5. Click "Capture" and then "Retake."
  6. Close the capture modal.
  7. Error: The image is saved even though the user clicked "Retake."

Expected Behavior

The image should not be saved when the user clicks "Retake." Only the final captured image should be stored.


Screenshots

Image


Environment

JavidSumra commented 6 hours ago

Hey Team Can You please Assign this issue to me?