Skip to content

Product review modal error message is now accurate.#1370

Merged
Ubersmake merged 1 commit intobigcommerce:masterfrom
Ubersmake:STRF-5418
Oct 11, 2018
Merged

Product review modal error message is now accurate.#1370
Ubersmake merged 1 commit intobigcommerce:masterfrom
Ubersmake:STRF-5418

Conversation

@Ubersmake
Copy link
Copy Markdown
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
Copy Markdown

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.

3 participants