Skip to content

Reading: Fix UI bug with edge case for lowest score in cohort - #2800

Merged
kevinrobinson merged 2 commits into
masterfrom
patch/cohort-comparison-bug-for-zero
Apr 3, 2020
Merged

kevinrobinson merged 2 commits into
masterfrom
patch/cohort-comparison-bug-for-zero

Conversation

@kevinrobinson

Copy link
Copy Markdown
Contributor

Who is this PR for?

K5 reading folks

What problem does this PR fix?

If the student had the lowest score in their cohort, nothing would be shown in the comparison chart.

Screen Shot 2020-04-03 at 1 30 08 PM

What does this PR do?

Fixes the bug to not use x && y since 0 is falsy but to check it isn't undefined or null.

Checklists

Which features or pages does this PR touch?

  • Reader profile

Does this PR use tests to help verify we can deploy these changes quickly and confidently?

  • Included specs for changes
  • Improved specs for existing code in need of better test coverage

@kevinrobinson

Copy link
Copy Markdown
Contributor Author

selfie

@kevinrobinson
kevinrobinson merged commit a633d42 into master Apr 3, 2020
@kevinrobinson
kevinrobinson deleted the patch/cohort-comparison-bug-for-zero branch April 3, 2020 18:45
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.

1 participant