Yuki Takei пре 10 месеци
родитељ
комит
af8621fc81
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      apps/app/src/client/components/Sidebar/SidebarContents.tsx

+ 2 - 2
apps/app/src/client/components/Sidebar/SidebarContents.tsx

@@ -35,13 +35,13 @@ export const SidebarContents = memo(() => {
       case SidebarContentsType.BOOKMARKS:
         return Bookmarks;
       case SidebarContentsType.NOTIFICATION:
-        if (isGuestUser == null) return <></>; // wait for isGuestUser to be determined
+        if (isGuestUser == null) return () => <></>; // wait for isGuestUser to be determined
         if (!isGuestUser) {
           return InAppNotification;
         }
         return PageTree;
       case SidebarContentsType.AI_ASSISTANT:
-        if (isAiEnabled == null) return <></>; // wait for isAiEnabled to be determined
+        if (isAiEnabled == null) return () => <></>; // wait for isAiEnabled to be determined
         if (isAiEnabled) {
           return AiAssistant;
         }