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 ;