1
0
Fork 0

chore: Linter and webpack warnings

This commit is contained in:
joostdecock 2023-01-09 21:10:41 +01:00
parent e06e37afce
commit e9f85f43b8
2 changed files with 4 additions and 2 deletions

View file

@ -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,

View file

@ -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)