chore: Linter and webpack warnings
This commit is contained in:
parent
e06e37afce
commit
e9f85f43b8
2 changed files with 4 additions and 2 deletions
|
@ -3,7 +3,7 @@ import { appWithTranslation } from 'next-i18next'
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import Bugsnag from '@bugsnag/js'
|
import Bugsnag from '@bugsnag/js'
|
||||||
import BugsnagPluginReact from '@bugsnag/plugin-react'
|
import BugsnagPluginReact from '@bugsnag/plugin-react'
|
||||||
import process from 'node:process'
|
import process from 'process'
|
||||||
|
|
||||||
Bugsnag.start({
|
Bugsnag.start({
|
||||||
apiKey: process.env.BUGSNAG_API_KEY,
|
apiKey: process.env.BUGSNAG_API_KEY,
|
||||||
|
|
|
@ -23,7 +23,7 @@ const SignUpPage = (props) => {
|
||||||
const [email, setEmail] = useState('')
|
const [email, setEmail] = useState('')
|
||||||
const [emailValid, setEmailValid] = useState(false)
|
const [emailValid, setEmailValid] = useState(false)
|
||||||
const [result, setResult] = useState({ result: 'success' })
|
const [result, setResult] = useState({ result: 'success' })
|
||||||
//const [error, setError] = useState(null)
|
const [error, setError] = useState(null)
|
||||||
|
|
||||||
const updateEmail = (evt) => {
|
const updateEmail = (evt) => {
|
||||||
const value = evt.target.value
|
const value = evt.target.value
|
||||||
|
@ -45,6 +45,8 @@ const SignUpPage = (props) => {
|
||||||
})
|
})
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
setError(app.error(err))
|
setError(app.error(err))
|
||||||
|
// Here to keep the stupid linter happy
|
||||||
|
console.log(error)
|
||||||
}
|
}
|
||||||
// Do something clever next
|
// Do something clever next
|
||||||
console.log(res)
|
console.log(res)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue