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

Product review modal error message is now accurate. #1370

Merged
merged 1 commit into from
Oct 11, 2018
Merged

Product review modal error message is now accurate. #1370

merged 1 commit into from
Oct 11, 2018

Conversation

Ubersmake
Copy link
Contributor

What?

The product review modal currently returns an error message that fields are blank during pre-submit form field validation. This happens when the Subject and Comments fields have entries with 1 character. Code-wise, validation only passes when there is an input of minimum length 2.

This PR changes this so that the error message is accurate. If the forms are blank, the error message about form fields being blank will appear. If the forms are not blank, they won't.

Screenshots

Before

before

After

after

@bigbot
Copy link

bigbot commented Oct 11, 2018

Autotagging @bigcommerce/storefront-team @davidchin

@Ubersmake Ubersmake merged commit 84f0898 into bigcommerce:master Oct 11, 2018
@Ubersmake Ubersmake deleted the STRF-5418 branch October 11, 2018 22:42
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.

None yet

3 participants