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)
|
||||
useEffect(() => {
|
||||
if(!data) router.push('/api/auth/discord')
|
||||
localStorage.userCache = JSON.stringify({
|
||||
id: data.id,
|
||||
username: data.username,
|
||||
tag: data.tag,
|
||||
version: 2
|
||||
})
|
||||
setRedirect(true)
|
||||
else {
|
||||
localStorage.userCache = JSON.stringify({
|
||||
id: data.id,
|
||||
username: data.username,
|
||||
tag: data.tag,
|
||||
version: 2
|
||||
})
|
||||
setRedirect(true)
|
||||
}
|
||||
|
||||
}, [ data, router ])
|
||||
function redirectWhere() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user