ClinicWave / clinicwave-frontend

2 stars 1 forks source link

Update Error Handling to Use errorMessage Field in VerificationForm #10

Closed aamirxshaikh closed 3 months ago

aamirxshaikh commented 3 months ago

Description:

This pull request introduces updates to the error handling mechanism in the VerificationForm component. It modifies the way error messages are handled to ensure consistency with the updated backend response structure.

Changes:

Purpose:

The purpose of this pull request is to align the frontend error handling with the updated backend response format. By using errorMessage instead of error, the changes ensure that error messages are consistently processed and displayed in the VerificationForm component. This update supports better error management and improves user feedback when interacting with the verification form.

This pull request fixes (#8)