Explorar el Código

Merge pull request #7096 from weseek/111311/fix-disable-tooltip-for-lggedin-user

fix: disable tooltip for logged in user
Haku Mizuki hace 3 años
padre
commit
d092be1c9e
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  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 isDisabled = !!isGuestUser;
 
+  if (!isGuestUser) {
+    return children;
+  }
+
   const id = `grw-not-available-for-guest-${Math.random().toString(32).substring(2)}`;
 
   return (