return days > 0;
}
-function shouldDisplayDaysInShortFormat(days) {
+function shouldDisplayDaysInShortFormat (days) {
return days > 0.9;
}
return formatted[0] !== '-' ? '+' + formatted : formatted;
}
-
let maintainabilityRatingGrid;
function getMaintainabilityRatingGrid () {
if (maintainabilityRatingGrid) {
if (rating < 2) {
return translateWithParameters(
'metric.sqale_rating.tooltip.A',
- `${maintainabilityGrid[0]}%`);
+ formatMeasure(maintainabilityGrid[0] * 100, 'PERCENT')
+ );
}
const ratingLetter = formatMeasure(rating, 'RATING');
return translateWithParameters(
'metric.sqale_rating.tooltip',
ratingLetter,
- `${maintainabilityRatingThreshold}%`);
+ formatMeasure(maintainabilityRatingThreshold * 100, 'PERCENT')
+ );
}
export function getRatingTooltip (metricKey, value) {