diff --git a/frontend/src/components/login/InitialLoginStep.tsx b/frontend/src/components/login/InitialLoginStep.tsx index bcce19d1c..72e375482 100644 --- a/frontend/src/components/login/InitialLoginStep.tsx +++ b/frontend/src/components/login/InitialLoginStep.tsx @@ -1,4 +1,4 @@ -import { useState } from "react"; +import { FormEvent, useState } from "react"; import { useTranslation } from "react-i18next"; import Link from "next/link"; import { useRouter } from "next/router"; @@ -31,7 +31,8 @@ export default function InitialLoginStep({ const [isLoading, setIsLoading] = useState(false); const [loginError, setLoginError] = useState(false); - const handleLogin = async () => { + const handleLogin = async (e: FormEvent) => { + e.preventDefault() try { if (!email || !password) { return; @@ -98,7 +99,7 @@ export default function InitialLoginStep({ setIsLoading(false); } - return
+ return

Login to Infisical

{/*
-
+ }