diff --git a/src/components/Banners/SlackNotificationBanner.tsx b/src/components/Banners/SlackNotificationBanner.tsx index dfa2ef0038..3e92415060 100644 --- a/src/components/Banners/SlackNotificationBanner.tsx +++ b/src/components/Banners/SlackNotificationBanner.tsx @@ -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 ? (