Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

Commit

Permalink
DEVPROD-788: Hide Slack banner more reliably (#2243)
Browse files Browse the repository at this point in the history
  • Loading branch information
sophstad authored Jan 29, 2024
1 parent 7b2e828 commit 349a605
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/Banners/SlackNotificationBanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,10 @@ export const SlackNotificationBanner = () => {
!notifications &&
(isNotificationSet(patchFirstFailure) || isNotificationSet(patchFinish));

const showSlackBanner = !hasClosedBanner && !hasSetNotifications;
const shouldShowSlackBanner =
!defaultSlackUsername && !hasClosedBanner && !hasSetNotifications;

return showSlackBanner ? (
return shouldShowSlackBanner ? (
<Banner
variant="info"
data-cy="slack-notification-banner"
Expand Down

0 comments on commit 349a605

Please sign in to comment.