This commit is contained in:
parent
5ff8be68b8
commit
c6042a8261
@ -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 <Spinner />;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user