diff options
2 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/apps/web-api/components/DeprecatedBadge.tsx b/server/sonar-web/src/main/js/apps/web-api/components/DeprecatedBadge.tsx index 4c59dec8ad8..96f07462464 100644 --- a/server/sonar-web/src/main/js/apps/web-api/components/DeprecatedBadge.tsx +++ b/server/sonar-web/src/main/js/apps/web-api/components/DeprecatedBadge.tsx @@ -25,7 +25,7 @@ import { parseVersion } from '../utils'; export default function DeprecatedBadge({ since }: { since?: string }) { const version = since && parseVersion(since); const overlay = version - ? translateWithParameters('api_documentation.will_be_removed_in_x', `${version.major + 2}.0`) + ? translateWithParameters('api_documentation.will_be_removed_in_x', `${version.major + 1}.0`) : translate('api_documentation.deprecation_tooltip'); const label = since ? translateWithParameters('api_documentation.deprecated_since_x', since) diff --git a/server/sonar-web/src/main/js/apps/web-api/components/__tests__/__snapshots__/DeprecatedBadge-test.tsx.snap b/server/sonar-web/src/main/js/apps/web-api/components/__tests__/__snapshots__/DeprecatedBadge-test.tsx.snap index d0b09b12326..19006a173f4 100644 --- a/server/sonar-web/src/main/js/apps/web-api/components/__tests__/__snapshots__/DeprecatedBadge-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/web-api/components/__tests__/__snapshots__/DeprecatedBadge-test.tsx.snap @@ -14,7 +14,7 @@ exports[`should render with malformed version 1`] = ` exports[`should render with version 1`] = ` <Tooltip - overlay="api_documentation.will_be_removed_in_x.7.0" + overlay="api_documentation.will_be_removed_in_x.6.0" > <span className="badge badge-warning" |