diff options
Diffstat (limited to 'server/sonar-web/src/main/js/apps/projectActivity/components/GraphsTooltipsContentCoverage.js')
-rw-r--r-- | server/sonar-web/src/main/js/apps/projectActivity/components/GraphsTooltipsContentCoverage.js | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/server/sonar-web/src/main/js/apps/projectActivity/components/GraphsTooltipsContentCoverage.js b/server/sonar-web/src/main/js/apps/projectActivity/components/GraphsTooltipsContentCoverage.js index 77c630376f7..ebfb326d4aa 100644 --- a/server/sonar-web/src/main/js/apps/projectActivity/components/GraphsTooltipsContentCoverage.js +++ b/server/sonar-web/src/main/js/apps/projectActivity/components/GraphsTooltipsContentCoverage.js @@ -43,34 +43,33 @@ export default function GraphsTooltipsContentCoverage( const coverageValue = coverage.history[tooltipIdx].value; return ( <tbody> - {addSeparator && + {addSeparator && ( <tr> <td className="project-activity-graph-tooltip-separator" colSpan="3"> <hr /> </td> - </tr>} - {uncoveredValue && + </tr> + )} + {uncoveredValue && ( <tr className="project-activity-graph-tooltip-line"> <td colSpan="2" className="project-activity-graph-tooltip-value text-right spacer-right thin"> {formatMeasure(uncoveredValue, 'SHORT_INT')} </td> - <td> - {translate('metric.uncovered_lines.name')} - </td> - </tr>} - {coverageValue && + <td>{translate('metric.uncovered_lines.name')}</td> + </tr> + )} + {coverageValue && ( <tr className="project-activity-graph-tooltip-line"> <td colSpan="2" className="project-activity-graph-tooltip-value text-right spacer-right thin"> {formatMeasure(coverageValue, 'PERCENT')} </td> - <td> - {translate('metric.coverage.name')} - </td> - </tr>} + <td>{translate('metric.coverage.name')}</td> + </tr> + )} </tbody> ); } |