mirror of
https://github.com/koreanbots/core.git
synced 2025-12-16 06:20:24 +00:00
style: fixed for deepscan
This commit is contained in:
parent
61a0304c2c
commit
fd7e2e1928
@ -15,13 +15,15 @@ const DiscordCallback:NextPage<DiscordCallbackProps> = ({ data }) => {
|
|||||||
const [ redirect, setRedirect ] = useState(false)
|
const [ redirect, setRedirect ] = useState(false)
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if(!data) router.push('/api/auth/discord')
|
if(!data) router.push('/api/auth/discord')
|
||||||
localStorage.userCache = JSON.stringify({
|
else {
|
||||||
id: data.id,
|
localStorage.userCache = JSON.stringify({
|
||||||
username: data.username,
|
id: data.id,
|
||||||
tag: data.tag,
|
username: data.username,
|
||||||
version: 2
|
tag: data.tag,
|
||||||
})
|
version: 2
|
||||||
setRedirect(true)
|
})
|
||||||
|
setRedirect(true)
|
||||||
|
}
|
||||||
|
|
||||||
}, [ data, router ])
|
}, [ data, router ])
|
||||||
function redirectWhere() {
|
function redirectWhere() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user