From b40ad45588bc4b60c031b5fdd9029b96510c2ed9 Mon Sep 17 00:00:00 2001 From: Oxicode Date: Wed, 22 Apr 2020 13:09:46 -0500 Subject: [PATCH] fix variable --- examples/with-iron-session/pages/login.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/with-iron-session/pages/login.js b/examples/with-iron-session/pages/login.js index 5cac54c71068b..2b26911cbc111 100644 --- a/examples/with-iron-session/pages/login.js +++ b/examples/with-iron-session/pages/login.js @@ -12,7 +12,7 @@ const Login = () => { const [errorMsg, setErrorMsg] = useState('') async function handleSubmit(e) { - event.preventDefault() + e.preventDefault() const body = { username: e.currentTarget.username.value,