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

Commit

Permalink
Update src/components/Banners/SlackNotificationBanner.tsx
Browse files Browse the repository at this point in the history
Co-authored-by: Mohamed Khelif <[email protected]>
  • Loading branch information
sophstad and khelif96 authored Jan 25, 2024
1 parent 6f622d9 commit bf73691
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Banners/SlackNotificationBanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@ export const SlackNotificationBanner = () => {
!notifications &&
(isNotificationSet(patchFirstFailure) || isNotificationSet(patchFinish));

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

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

0 comments on commit bf73691

Please sign in to comment.