From: stanislavh Date: Fri, 20 Sep 2024 12:08:28 +0000 (+0200) Subject: SONAR-23050 Remove one extra close button when restoring QP X-Git-Tag: 10.7.0.96327~76 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=13bddcd687120ceb3989ce155a657262b77463aa;p=sonarqube.git SONAR-23050 Remove one extra close button when restoring QP --- diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/home/RestoreProfileForm.tsx b/server/sonar-web/src/main/js/apps/quality-profiles/home/RestoreProfileForm.tsx index 224775aa7e1..18f5c47d627 100644 --- a/server/sonar-web/src/main/js/apps/quality-profiles/home/RestoreProfileForm.tsx +++ b/server/sonar-web/src/main/js/apps/quality-profiles/home/RestoreProfileForm.tsx @@ -116,7 +116,7 @@ export default function RestoreProfileForm({ onClose, onRestore }: Readonly } primaryButton={ - ruleSuccesses == null ? ( + ruleSuccesses == null && ( - ) : ( - ) } secondaryButtonLabel={intl.formatMessage({ id: ruleSuccesses == null ? 'cancel' : 'close' })}