|
@@ -35,13 +35,13 @@ export const SidebarContents = memo(() => {
|
|
|
case SidebarContentsType.BOOKMARKS:
|
|
case SidebarContentsType.BOOKMARKS:
|
|
|
return Bookmarks;
|
|
return Bookmarks;
|
|
|
case SidebarContentsType.NOTIFICATION:
|
|
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) {
|
|
if (!isGuestUser) {
|
|
|
return InAppNotification;
|
|
return InAppNotification;
|
|
|
}
|
|
}
|
|
|
return PageTree;
|
|
return PageTree;
|
|
|
case SidebarContentsType.AI_ASSISTANT:
|
|
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) {
|
|
if (isAiEnabled) {
|
|
|
return AiAssistant;
|
|
return AiAssistant;
|
|
|
}
|
|
}
|