Skip to content

Commit

Permalink
Fix: Added logged in check to workspace banner (#3048)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikehrn authored Sep 19, 2024
1 parent c5e79ea commit c314f99
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/frontend-2/components/promo-banners/Workspace.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ import imageDark from '~/assets/images/banners/workspace-promo-dark.png'
import imageMobileLight from '~/assets/images/banners/workspace-promo-mobile-light.png'
import imageMobileDark from '~/assets/images/banners/workspace-promo-mobile-dark.png'
const { isLoggedIn } = useActiveUser()
const breakpoints = useBreakpoints(TailwindBreakpoints)
const { isDarkTheme } = useTheme()
const isWorkspacesEnabled = useIsWorkspacesEnabled()
Expand Down Expand Up @@ -82,6 +83,7 @@ const hasWorkspaces = computed(() =>
const showBanner = computed(
() =>
isWorkspacesEnabled.value &&
isLoggedIn.value &&
!hasWorkspaces.value &&
(import.meta.client ? !dismissedCookie.value : false)
)
Expand Down

0 comments on commit c314f99

Please sign in to comment.