From c6042a8261d1c2567605c65c6621d273fa4b80d6 Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 2 Dec 2024 21:17:05 -0700 Subject: [PATCH] fix --- src/views/signin/start.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/views/signin/start.tsx b/src/views/signin/start.tsx index 6ccfe23..5be28ff 100644 --- a/src/views/signin/start.tsx +++ b/src/views/signin/start.tsx @@ -6,7 +6,7 @@ import Key01 from "../../components/icons/key-01"; import Diamond01 from "../../components/icons/diamond-01"; import UsbFlashDrive from "../../components/icons/usb-flash-drive"; import HelpCircle from "../../components/icons/help-circle"; - +import { useNavigate } from "react-router-dom"; import { COMMON_CONTACT_RELAY } from "../../const"; import accountService from "../../services/account"; import serialPortService from "../../services/serial-port"; @@ -26,7 +26,7 @@ export default function LoginStartView() { const location = useLocation(); const toast = useToast(); const [loading, setLoading] = useState(false); - + const navigate = useNavigate(); const signinWithExtension = async () => { if (window.nostr) { try { @@ -71,7 +71,8 @@ export default function LoginStartView() { } catch (e) { if (e instanceof Error) toast({ description: e.message, status: "error" }); } - }; + navigate("/relays"); + } if (loading) return ;