Remove logs and unused dependencies
This commit is contained in:
parent
8c952a57f5
commit
18a998b1ed
3 changed files with 3 additions and 9 deletions
|
|
@ -234,7 +234,6 @@ const CharacterGrid = (props: Props) => {
|
|||
} skills to your party at once.`
|
||||
setErrorMessage(message)
|
||||
}
|
||||
console.log(error.response.data)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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') {
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Reference in a new issue