style: fixed for deepscan

This commit is contained in:
wonderlandpark 2021-04-09 22:30:06 +09:00
parent 61a0304c2c
commit fd7e2e1928

View File

@ -15,6 +15,7 @@ const DiscordCallback:NextPage<DiscordCallbackProps> = ({ data }) => {
const [ redirect, setRedirect ] = useState(false)
useEffect(() => {
if(!data) router.push('/api/auth/discord')
else {
localStorage.userCache = JSON.stringify({
id: data.id,
username: data.username,
@ -22,6 +23,7 @@ const DiscordCallback:NextPage<DiscordCallbackProps> = ({ data }) => {
version: 2
})
setRedirect(true)
}
}, [ data, router ])
function redirectWhere() {