Skip to content

Commit

Permalink
Fix welcome banner bug
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeyGuyDylan committed Mar 7, 2025
1 parent aef9859 commit 357f75b
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,12 @@ const useWelcomeBanner = () => {
);

useEffect( () => {
if ( ! isRedBubbleAlertsLoading && ! isRedBubbleAlertsError ) {
setIsWelcomeBannerVisible( redBubbleAlertKeys.includes( 'welcome-banner-active' ) );
if (
! isRedBubbleAlertsLoading &&
! isRedBubbleAlertsError &&
redBubbleAlertKeys.includes( 'welcome-banner-active' )
) {
setIsWelcomeBannerVisible( true );
}
}, [
isRedBubbleAlertsError,
Expand Down

0 comments on commit 357f75b

Please sign in to comment.