From 6e0c8011cfef275c30d1ccd845dde27212844f58 Mon Sep 17 00:00:00 2001 From: Rashmi V Abbigeri Date: Fri, 20 Jan 2023 19:52:22 +0530 Subject: [PATCH] fix --- src/pages/index.tsx | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/pages/index.tsx b/src/pages/index.tsx index b47d8ea..a539248 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -98,13 +98,8 @@ export async function getServerSideProps({ req, res }) { try { const cookieExists = getCookie("token", { req, res }); console.log("cookie Exists:" + cookieExists); - if (cookieExists) - return { props: { - authd: true // set isAuthentic propoerty to true using redux - } }; + return { props: {} }; // set isAuthentic property to true using redux } catch (err) { - return { props: { - error: err - } }; + return { props: {} }; } }