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

Develop #2714

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Develop #2714

wants to merge 3 commits into from

Conversation

venher-v
Copy link

Copy link

@mateacademy-ai-mentor mateacademy-ai-mentor left a comment

Choose a reason for hiding this comment

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

Great job on implementing the task! 🎉 While there are a few minor issues like typos in variable names and a condition that needs tweaking, they don't significantly impact the functionality. Keep up the good work and consider addressing these minor points for even cleaner code in the future! 😊

✨ Please rate this review in the Platform's notification center. I will be grateful for your feedback! ✨

Comment on lines 35 to 37
const handleImdbUId = (val: string) => {
setImdbId(val);
};

Choose a reason for hiding this comment

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

There is a typo in the function name handleImdbUId. It should be handleImdbId to maintain consistency with the state variable imdbId.

Comment on lines 39 to 41
const trimedTitle = title.trim();
const trimedDescription = description.trim();
const trimedImgUrl = imgUrl.trim();

Choose a reason for hiding this comment

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

There are typos in the variable names trimedTitle, trimedDescription, and trimedImgUrl. They should be trimmedTitle, trimmedDescription, and trimmedImgUrl respectively to maintain consistency and correct spelling.

Comment on lines 56 to 58
if (trimedTitle || trimedImgUrl || trimmedImdbUrl || trimmedImdbId) {
onAdd(newMovie);
}

Choose a reason for hiding this comment

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

The condition in the if statement should ensure that all required fields are filled before adding a new movie. Currently, it checks if any of the fields are filled. Consider changing the condition to check if all required fields are non-empty.

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

Successfully merging this pull request may close these issues.

2 participants