Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the Review Submission Error #100

Merged
merged 2 commits into from
Oct 16, 2024

Conversation

dipexplorer
Copy link
Contributor

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

  • Pull this branch.
  • Run npm install to install dependencies.
  • Log in or sign up as a user.
  • Navigate to the review section and try to add a new review.
  • Ensure the review is added successfully without encountering a 404 error.
    *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.

  • This PR is based on the following...

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

Copy link

vercel bot commented Oct 15, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
wanderlust-2024 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 15, 2024 5:08pm

Copy link

Thank you for submitting your pull request! 🙌 We'll review it as soon as possible. In the meantime, please ensure that your changes align with our CONTRIBUTING.md. If there are any specific instructions or feedback regarding your PR, we'll provide them here. Thanks again for your contribution! 😊

@Soujanya2004 Soujanya2004 merged commit 08f6e0e into Soujanya2004:main Oct 16, 2024
3 checks passed
@dipexplorer dipexplorer deleted the fix_review_bug branch October 16, 2024 09:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Cannot add new reviews
2 participants