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

Otto PR for Issue Make updates to file: src/pages/create/description.tsx #828

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

cpirich
Copy link
Collaborator

@cpirich cpirich commented Sep 6, 2023

Summary:

  1. Update the handleSubmit function to handle different types of errors separately and provide more specific error messages. For example, network errors, server errors, and validation errors should be handled differently. 2. Initialize the 'description' state as null and add validation to check if it's null or empty before submitting the form. 3. Clear the 'error' state before a new submission to avoid confusion if an old error message is displayed for a new submission.

@cpirich
Copy link
Collaborator Author

cpirich commented Sep 6, 2023

Hello human! 👋

This PR was created by Otto to address the issue Otto PR for Issue Make updates to file: src/pages/create/description.tsx

Next Steps

  1. Please review the PR carefully. Auto-generated code can and will contain subtle bugs and mistakes.

  2. If you identify code that needs to be changed, please reject the PR with a specific reason. Be as detailed as possible in your comments. Otto will take these comments, make changes to the code and push up changes. Please note that this process will take a few minutes.

  3. Once the code looks good, approve the PR and merge the code.

@vercel
Copy link

vercel bot commented Sep 6, 2023

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

Name Status Preview Comments Updated (UTC)
otto-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 6, 2023 10:12pm

@cpirich cpirich added the question Further information is requested label Sep 15, 2023
Copy link
Collaborator Author

@cpirich cpirich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test review comment

@cpirich
Copy link
Collaborator Author

cpirich commented Oct 3, 2023

Another review comment

Copy link
Collaborator Author

@cpirich cpirich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR review comment

Copy link
Collaborator Author

@cpirich cpirich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant