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:
Updated ErrorResponse and VerificationStatusErrorResponse interfaces in VerificationForm.tsx to use errorMessage instead of error.
Modified error handling logic in checkVerificationStatus to use errorMessage for setting error state.
Adjusted error handling logic in handleSubmit to use errorMessage for setting error and validation errors.
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.
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:
ErrorResponse
andVerificationStatusErrorResponse
interfaces inVerificationForm.tsx
to useerrorMessage
instead oferror
.checkVerificationStatus
to useerrorMessage
for setting error state.handleSubmit
to useerrorMessage
for setting error and validation errors.Purpose:
The purpose of this pull request is to align the frontend error handling with the updated backend response format. By using
errorMessage
instead oferror
, the changes ensure that error messages are consistently processed and displayed in theVerificationForm
component. This update supports better error management and improves user feedback when interacting with the verification form.This pull request fixes (#8)