Skip to content

Commit

Permalink
hot fix for preview banner
Browse files Browse the repository at this point in the history
  • Loading branch information
ikethecoder committed Jun 1, 2022
1 parent 23d21e1 commit 640054a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/nextapp/components/preview-banner/preview-banner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,12 @@ const PreviewBanner: React.FC = () => {
{ enabled: true }
);

if (!user || !isSuccess || data.currentNamespace.org) {
if (
!user ||
!isSuccess ||
data.currentNamespace === null ||
data.currentNamespace.org
) {
return null;
}

Expand Down

0 comments on commit 640054a

Please sign in to comment.