fixing chart 🐛

This commit is contained in:
joseCorte-exe 2022-08-16 10:30:57 -03:00
parent cbafcb1642
commit ba54f8ffd6

View File

@ -168,15 +168,15 @@ export default function Home() {
)
}
export const getServerSideProps: GetServerSideProps = async (ctx) => {
const { ['@smartAuth-token']: token } = parseCookies(ctx)
// export const getServerSideProps: GetServerSideProps = async (ctx) => {
// const { ['@smartAuth-token']: token } = parseCookies(ctx)
if (token) {
return {
redirect: {
destination: '/dashboard',
permanent: false
}
}
}
}
// if (token) {
// return {
// redirect: {
// destination: '/dashboard',
// permanent: false
// }
// }
// }
// }