Browse Source

[NO-JIRA] Fix unnecessary assertion

tags/10.3.0.82913
David Cho-Lerat 8 months ago
parent
commit
a22e9845fc

+ 1
- 1
server/sonar-web/src/main/js/apps/overview/components/SonarLintPromotion.tsx View File

@@ -50,7 +50,7 @@ const CONDITIONS_TO_SHOW = [
export function SonarLintPromotion({ currentUser, qgConditions }: SonarLintPromotionProps) {
const showMessage = qgConditions?.some(
(qgCondition) =>
CONDITIONS_TO_SHOW.includes(qgCondition.metric as MetricKey) && qgCondition.level === 'ERROR',
CONDITIONS_TO_SHOW.includes(qgCondition.metric) && qgCondition.level === 'ERROR',
);
if (!showMessage || currentUser.usingSonarLintConnectedMode) {
return null;

Loading…
Cancel
Save