Remove logs and unused dependencies

This commit is contained in:
Justin Edmund 2022-12-30 05:18:40 -08:00
parent 8c952a57f5
commit 18a998b1ed
3 changed files with 3 additions and 9 deletions

View file

@ -234,7 +234,6 @@ const CharacterGrid = (props: Props) => {
} skills to your party at once.`
setErrorMessage(message)
}
console.log(error.response.data)
})
}
}

View file

@ -1,6 +1,6 @@
import React, { useState } from 'react'
import { setCookie } from 'cookies-next'
import Router, { useRouter } from 'next/router'
import { useRouter } from 'next/router'
import { useTranslation } from 'react-i18next'
import axios, { AxiosError, AxiosResponse } from 'axios'
@ -86,8 +86,6 @@ const LoginModal = () => {
(error) => error.length > 0 && (valid = false)
)
console.log(errors)
return valid
}
@ -110,8 +108,6 @@ const LoginModal = () => {
.then((id) => fetchUserInfo(id))
.then((infoResponse) => storeUserInfo(infoResponse))
.catch((error: Error | AxiosError) => {
console.log(error)
if (axios.isAxiosError(error)) {
const response = error?.response
if (response && response.data.error === 'invalid_grant') {

View file

@ -1,8 +1,7 @@
import React, { useEffect, useState } from 'react'
import Link from 'next/link'
import React, { useState } from 'react'
import { setCookie } from 'cookies-next'
import { useRouter } from 'next/router'
import { Trans, useTranslation } from 'next-i18next'
import { useTranslation } from 'next-i18next'
import { AxiosResponse } from 'axios'
import api from '~utils/api'