From feb10f45c10c14c834902d7cfbac7b56b06a2c02 Mon Sep 17 00:00:00 2001 From: Paul van Dyk <39598117+PaulPCIO@users.noreply.github.com> Date: Mon, 16 Nov 2020 17:50:58 +0100 Subject: [PATCH] Update with-magic example (#19207) fixes the event argument inside the function call - argument is `e` but `event` was used instead --- examples/with-magic/pages/login.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/with-magic/pages/login.js b/examples/with-magic/pages/login.js index 683ba70c09..571db159a7 100644 --- a/examples/with-magic/pages/login.js +++ b/examples/with-magic/pages/login.js @@ -12,7 +12,7 @@ const Login = () => { const [errorMsg, setErrorMsg] = useState('') async function handleSubmit(e) { - event.preventDefault() + e.preventDefault() if (errorMsg) setErrorMsg('') -- GitLab