Yuken Tezuka пре 3 година
родитељ
комит
8a35910640
1 измењених фајлова са 4 додато и 0 уклоњено
  1. 4 0
      packages/app/src/components/NotAvailableForGuest.tsx

+ 4 - 0
packages/app/src/components/NotAvailableForGuest.tsx

@@ -16,6 +16,10 @@ export const NotAvailableForGuest = ({ children }: NotAvailableForGuestProps): J
   const { data: isGuestUser } = useIsGuestUser();
   const { data: isGuestUser } = useIsGuestUser();
   const isDisabled = !!isGuestUser;
   const isDisabled = !!isGuestUser;
 
 
+  if (!isGuestUser) {
+    return children;
+  }
+
   const id = `grw-not-available-for-guest-${Math.random().toString(32).substring(2)}`;
   const id = `grw-not-available-for-guest-${Math.random().toString(32).substring(2)}`;
 
 
   return (
   return (