diff options
Diffstat (limited to 'server/sonar-web/src/main/js/apps/portfolio/components/ReleasabilityBox.tsx')
-rw-r--r-- | server/sonar-web/src/main/js/apps/portfolio/components/ReleasabilityBox.tsx | 34 |
1 files changed, 16 insertions, 18 deletions
diff --git a/server/sonar-web/src/main/js/apps/portfolio/components/ReleasabilityBox.tsx b/server/sonar-web/src/main/js/apps/portfolio/components/ReleasabilityBox.tsx index fdffce0d3dc..4fb6e1ad37a 100644 --- a/server/sonar-web/src/main/js/apps/portfolio/components/ReleasabilityBox.tsx +++ b/server/sonar-web/src/main/js/apps/portfolio/components/ReleasabilityBox.tsx @@ -50,24 +50,22 @@ export default function ReleasabilityBox({ component, measures }: Props) { <RatingFreshness lastChange={lastReleasabilityChange} rating={rating} /> - {effort && - Number(effort) > 0 && ( - <div className="portfolio-effort"> - <Link - to={getComponentDrilldownUrl({ componentKey: component, metric: 'alert_status' })}> - <span> - <Measure - className="little-spacer-right" - metricKey="projects" - metricType="SHORT_INT" - value={effort} - /> - {Number(effort) === 1 ? 'project' : 'projects'} - </span> - </Link>{' '} - <Level level="ERROR" small={true} /> - </div> - )} + {effort && Number(effort) > 0 && ( + <div className="portfolio-effort"> + <Link to={getComponentDrilldownUrl({ componentKey: component, metric: 'alert_status' })}> + <span> + <Measure + className="little-spacer-right" + metricKey="projects" + metricType="SHORT_INT" + value={effort} + /> + {Number(effort) === 1 ? 'project' : 'projects'} + </span> + </Link>{' '} + <Level level="ERROR" small={true} /> + </div> + )} </div> ); } |