diff options
-rw-r--r-- | server/sonar-web/src/main/js/apps/issues/sidebar/CreationDateFacet.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/apps/issues/sidebar/CreationDateFacet.js b/server/sonar-web/src/main/js/apps/issues/sidebar/CreationDateFacet.js index 2f4e5038b86..959840083e2 100644 --- a/server/sonar-web/src/main/js/apps/issues/sidebar/CreationDateFacet.js +++ b/server/sonar-web/src/main/js/apps/issues/sidebar/CreationDateFacet.js @@ -175,8 +175,9 @@ export default class CreationDateFacet extends React.PureComponent { formatMeasure(stats[start], 'SHORT_INT') + '<br/>' + formatDate(startDate, longFormatterOption); - if (endDate && !isSameDay(endDate, startDate)) { - tooltip += ' – ' + formatDate(endDate, longFormatterOption); + const tooltipEndDate = endDate || Date.now(); + if (!isSameDay(tooltipEndDate, startDate)) { + tooltip += ' – ' + formatDate(tooltipEndDate, longFormatterOption); } return { |