Skip to content

Fix for ECOM-876 - #6483

Merged
wedaly merged 1 commit into
rc/2015-01-07from
hotfix/ecom-876
Jan 7, 2015
Merged

Fix for ECOM-876#6483
wedaly merged 1 commit into
rc/2015-01-07from
hotfix/ecom-876

Conversation

@wedaly

@wedaly wedaly commented Jan 7, 2015

Copy link
Copy Markdown
Contributor

ECOM-876: TypeError in payment JavaScript

The error would occur for course modes with exactly one suggested price. Since data() returns a number in this case, not a string, the split() function raised a type error.

We don't have existing tests that cover this, so in the interest of unblocking the release, I'd like to merge this into the RC and wait until we implement Selenium tests (next sprint) to cover this case.

I manually tested the payment flow with a course mode that had 0, 1, and 2 suggested prices.

@AlasdairSwan please review
FYI: @dsjen @cdodge

@AlasdairSwan

Copy link
Copy Markdown
Contributor

Looks good 👍

@dsjen

dsjen commented Jan 7, 2015

Copy link
Copy Markdown
Contributor

Looks great! I'm not sure if this matters, but you may want to consider changing "," to ',' for consistency.

@wedaly

wedaly commented Jan 7, 2015

Copy link
Copy Markdown
Contributor Author

Will merge as soon as tests pass.

wedaly pushed a commit that referenced this pull request Jan 7, 2015
@wedaly
wedaly merged commit 47f02ec into rc/2015-01-07 Jan 7, 2015
@wedaly
wedaly deleted the hotfix/ecom-876 branch January 7, 2015 18:07
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