Unverified Commit feb10f45 authored by Paul van Dyk's avatar Paul van Dyk Committed by GitHub

Update with-magic example (#19207)

fixes the event argument inside the function call
- argument is `e` but `event` was used instead
parent 43e75612
......@@ -12,7 +12,7 @@ const Login = () => {
const [errorMsg, setErrorMsg] = useState('')
async function handleSubmit(e) {
event.preventDefault()
e.preventDefault()
if (errorMsg) setErrorMsg('')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment