From e9f85f43b8676508ae3d18ac4396a4eae67ecaf6 Mon Sep 17 00:00:00 2001 From: joostdecock Date: Mon, 9 Jan 2023 21:10:41 +0100 Subject: [PATCH] chore: Linter and webpack warnings --- sites/org/pages/_app.js | 2 +- sites/org/pages/signup/index.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/sites/org/pages/_app.js b/sites/org/pages/_app.js index 36c39ff7e21..e4f36c958a5 100644 --- a/sites/org/pages/_app.js +++ b/sites/org/pages/_app.js @@ -3,7 +3,7 @@ import { appWithTranslation } from 'next-i18next' import React from 'react' import Bugsnag from '@bugsnag/js' import BugsnagPluginReact from '@bugsnag/plugin-react' -import process from 'node:process' +import process from 'process' Bugsnag.start({ apiKey: process.env.BUGSNAG_API_KEY, diff --git a/sites/org/pages/signup/index.js b/sites/org/pages/signup/index.js index 0f49680b4ce..c845cc41a0c 100644 --- a/sites/org/pages/signup/index.js +++ b/sites/org/pages/signup/index.js @@ -23,7 +23,7 @@ const SignUpPage = (props) => { const [email, setEmail] = useState('') const [emailValid, setEmailValid] = useState(false) const [result, setResult] = useState({ result: 'success' }) - //const [error, setError] = useState(null) + const [error, setError] = useState(null) const updateEmail = (evt) => { const value = evt.target.value @@ -45,6 +45,8 @@ const SignUpPage = (props) => { }) } catch (err) { setError(app.error(err)) + // Here to keep the stupid linter happy + console.log(error) } // Do something clever next console.log(res)