From 9ca7df6542075a33bcc70e4c1feb1320c476a17a Mon Sep 17 00:00:00 2001 From: LukeGus Date: Wed, 5 Nov 2025 11:43:14 -0600 Subject: [PATCH] fix: Auth ref error --- src/ui/desktop/authentication/Auth.tsx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/ui/desktop/authentication/Auth.tsx b/src/ui/desktop/authentication/Auth.tsx index ab7b496c..fb894adc 100644 --- a/src/ui/desktop/authentication/Auth.tsx +++ b/src/ui/desktop/authentication/Auth.tsx @@ -105,6 +105,13 @@ export function Auth({ const [totpLoading, setTotpLoading] = useState(false); const [webviewAuthSuccess, setWebviewAuthSuccess] = useState(false); + const [showServerConfig, setShowServerConfig] = useState( + null, + ); + const [currentServerUrl, setCurrentServerUrl] = useState(""); + const [dbConnectionFailed, setDbConnectionFailed] = useState(false); + const [dbHealthChecking, setDbHealthChecking] = useState(false); + const handleElectronAuthSuccess = useCallback(async () => { try { const meRes = await getUserInfo(); @@ -624,13 +631,6 @@ export function Auth({ ); - const [showServerConfig, setShowServerConfig] = useState( - null, - ); - const [currentServerUrl, setCurrentServerUrl] = useState(""); - const [dbConnectionFailed, setDbConnectionFailed] = useState(false); - const [dbHealthChecking, setDbHealthChecking] = useState(false); - useEffect(() => { if (dbConnectionFailed) { toast.error(t("errors.databaseConnection"));