🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
🐛 fix(desktop): prevent auth modal from showing during onboarding
Inneie063d093ae1b
diff --git a/src/features/Electron/AuthRequiredModal/index.tsx b/src/features/Electron/AuthRequiredModal/index.tsxindex e6d85a0030e..937cda4cd04 100644--- a/src/features/Electron/AuthRequiredModal/index.tsx+++ b/src/features/Electron/AuthRequiredModal/index.tsx@@ -5,8 +5,8 @@ import { Button, Flexbox, Icon, type ModalInstance, createModal } from '@lobehubimport { AlertCircle, LogIn } from 'lucide-react';import { memo, useCallback, useEffect, useRef, useState } from 'react';import { useTranslation } from 'react-i18next';-import { useLocation } from 'react-router-dom';+import { getDesktopOnboardingCompleted } from '@/app/[variants]/(desktop)/desktop-onboarding/storage';import { useElectronStore } from '@/store/electron';interface AuthRequiredModalContentProps {@@ -134,11 +134,9 @@ export const useAuthRequiredModal = () => {const AuthRequiredModal = memo(() => {const { open } = useAuthRequiredModal();- const pathname = useLocation().pathname;useWatchBroadcast('authorizationRequired', () => {if (useElectronStore.getState().isConnectionDrawerOpen) return;-- if (pathname.includes('/desktop-onboarding')) return;+ if (!getDesktopOnboardingCompleted()) return;open();});