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

fix: remove NaN from fastpass report by removing concatenation in OutcomeSummaryBar #857

Merged
merged 3 commits into from
Jun 25, 2019
Merged

Conversation

karanbirsingh
Copy link
Contributor

@karanbirsingh karanbirsingh commented Jun 25, 2019

Description of changes

If the countSuffix property isn't provided (like in the FastPass report), concatenating a number with an undefined countSuffix results in NaN, leading to issue #852. This PR removes the concatenation and instead lets React render the undefined (no-op) value.

Pull request checklist

  • Addresses an existing issue: On Automated check report, summary bar shows NaN #852
  • Added relevant unit test for your changes. (yarn test)
  • Verified code coverage for the changes made. Check coverage report at: <rootDir>/test-results/unit/coverage
  • Ran precheckin (yarn precheckin)
  • (UI changes only) Added screenshots/GIFs to description above
  • (UI changes only) Verified usability with NVDA/JAWS

screenshot of outcome bar

@karanbirsingh karanbirsingh requested a review from a team June 25, 2019 19:33
haonliu
haonliu previously approved these changes Jun 25, 2019
@karanbirsingh karanbirsingh changed the title fix: remove NaN from fastpass report by providing a default count suffix for OutcomeBarSummary fix: remove NaN from fastpass report by providing a default count suffix for OutcomeSummaryBar Jun 25, 2019
@karanbirsingh karanbirsingh changed the title fix: remove NaN from fastpass report by providing a default count suffix for OutcomeSummaryBar fix: remove NaN from fastpass report by removing concatenation in OutcomeSummaryBar Jun 25, 2019
@karanbirsingh karanbirsingh merged commit 3729799 into microsoft:master Jun 25, 2019
@karanbirsingh karanbirsingh deleted the outcome branch June 25, 2019 21:05
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.

4 participants