Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #92
This PR fixes the issue where users encounter a 404 error when trying to submit a new review after login or signup.
Ensures that new reviews are correctly updated and displayed in the review section after submission.
###Changes
Refactored the review submission API.
Updated the routes to correctly point to the review submission logic.
Validated the form data before submission to avoid errors.
Added error handling to display relevant error messages if the submission fails.
Testing Instructions
*Check that the newly added review appears correctly in the review list.
Screenshots (if applicable)
15.10.2024_21.02.54_REC.mp4
Additional Context
Any additional context or information that reviewers should be aware of.
Checklist
I have performed a self-review of my code.
I have commented on my code, particularly in hard-to-understand areas.
My changes generate no new warnings.
I am working on this issue under GSSoC