Skip to content

Commit

Permalink
fix login
Browse files Browse the repository at this point in the history
  • Loading branch information
shihjay2 committed May 30, 2024
1 parent fd983cd commit 63e74ac
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions components/magicLink/login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ export default function Login({ challenge, clinical=false, authonly=false, setEm
checkAvailability();
}, []);

const handleSubmit = async () => {
// event.preventDefault();
const handleSubmit = async (event: any) => {
event.preventDefault();
if (email !== '') {
if (validate(email)) {
// Check if user has an account
Expand Down Expand Up @@ -212,14 +212,14 @@ export default function Login({ challenge, clinical=false, authonly=false, setEm
{authonly ? (
<p>Authenticate Yourself</p>
) : (
<p>Subscribe to your own Trustee or Login with an existing account</p>
<p>Subscribe to your own Trustee or Sign In with an existing account</p>
)}
<Stack spacing={2}>
<TextField
error={isError}
name="email"
type="email"
placeholder="Email Address"
placeholder="Email Address (required)"
helperText={error}
variant="standard"
inputRef={input => input && input.focus()}
Expand Down

0 comments on commit 63e74ac

Please sign in to comment.