]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-20023 Don't show 'effort' twice in issue header meta
authorWouter Admiraal <wouter.admiraal@sonarsource.com>
Mon, 21 Aug 2023 14:46:45 +0000 (16:46 +0200)
committersonartech <sonartech@sonarsource.com>
Tue, 22 Aug 2023 20:03:04 +0000 (20:03 +0000)
server/sonar-web/src/main/js/apps/issues/components/IssueHeaderMeta.tsx

index 72b272143484e52ba081814cebf97cb8cdc7fed5..bc8d98d5d16ac5bbbd4520877010749267bdc12a 100644 (file)
@@ -22,7 +22,7 @@ import { BasicSeparator, LightLabel, themeBorder, Tooltip } from 'design-system'
 import React from 'react';
 import DateFromNow from '../../../components/intl/DateFromNow';
 import IssueTags from '../../../components/issue/components/IssueTags';
-import { translate, translateWithParameters } from '../../../helpers/l10n';
+import { translate } from '../../../helpers/l10n';
 import { Issue } from '../../../types/types';
 
 interface Props {
@@ -65,9 +65,7 @@ export default function IssueHeaderMeta(props: Props) {
 
       {issue.effort && (
         <>
-          <HotspotHeaderInfo title={translate('issue.effort')}>
-            {translateWithParameters('issue.x_effort', issue.effort)}
-          </HotspotHeaderInfo>
+          <HotspotHeaderInfo title={translate('issue.effort')}>{issue.effort}</HotspotHeaderInfo>
           {separator}
         </>
       )}