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

adding validation for album name #4

Closed
mani-barathi opened this issue May 20, 2021 · 0 comments · Fixed by #5
Closed

adding validation for album name #4

mani-barathi opened this issue May 20, 2021 · 0 comments · Fixed by #5
Labels
good first issue Good for newcomers

Comments

@mani-barathi
Copy link
Owner

Problem

Right now there is no validation check for the album name, which means a user can create an album with any number of characters.

Solution

check whether the length of the album name is between 1 and 16 characters.

Idea

Implement an if statement inside src/components/CreateAlbumModal.js before creating an album and check for the length of the album name, if it is more than 16 characters show a warning and not create the album.

Anyone who wants to implement this please let me know by leaving a comment below. I'll assign it to you

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

Successfully merging a pull request may close this issue.

1 participant