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 benchmarks page when there's only a single version #5376

Merged
merged 1 commit into from
Sep 30, 2017

Conversation

jfirebaugh
Copy link
Contributor

No description provided.

@@ -307,7 +307,7 @@ class BenchmarkRow extends React.Component {
{this.renderStatistic('(20% trimmed) Mean',
(version) => <p>
{formatSample(version.summary.trimmedMean)} ms
{version.name === current.name && change}
{change && version.name === current.name}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should still evaluate to change (rather than a boolean expression).

{current && version.name === current.name && change}?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤦‍♂️

@anandthakker anandthakker merged commit 78a6852 into master Sep 30, 2017
@anandthakker anandthakker deleted the single-version-benchmark branch September 30, 2017 12: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

2 participants