fix
Some checks are pending
Docker image / build-and-push-image (push) Waiting to run

This commit is contained in:
Your Name 2024-12-02 21:17:05 -07:00
parent 5ff8be68b8
commit c6042a8261

View File

@ -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 />;