From e659b46852a8a3cc504cce5f0f2f2b533a307867 Mon Sep 17 00:00:00 2001 From: AnsahMohammad Date: Sat, 16 Sep 2023 14:54:25 +0530 Subject: [PATCH] Deploy ready --- studySenseClient/src/LoginPage.jsx | 2 +- studySenseClient/src/Menu.jsx | 2 +- studySenseClient/src/Register.jsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/studySenseClient/src/LoginPage.jsx b/studySenseClient/src/LoginPage.jsx index 4758659..4da57e9 100755 --- a/studySenseClient/src/LoginPage.jsx +++ b/studySenseClient/src/LoginPage.jsx @@ -59,7 +59,7 @@ function App() { secure: true, }); console.log(data); - window.location.href = "https://studysenseai.netlify.app/app/"; + window.location.href = "app/"; }); } else { console.error("Failed to authenticate"); diff --git a/studySenseClient/src/Menu.jsx b/studySenseClient/src/Menu.jsx index 37d1974..de90adb 100755 --- a/studySenseClient/src/Menu.jsx +++ b/studySenseClient/src/Menu.jsx @@ -257,7 +257,7 @@ function App() { const token = user.token; // handling authentication if (!token) { - window.location.href = "https://studysenseai.netlify.app/"; + window.location.href = ""; } const [selectedPDFUrl, setSelectedPDFUrl] = useState(null); diff --git a/studySenseClient/src/Register.jsx b/studySenseClient/src/Register.jsx index 17f3d3b..4bc1e2b 100755 --- a/studySenseClient/src/Register.jsx +++ b/studySenseClient/src/Register.jsx @@ -64,7 +64,7 @@ function App() { sameSite: "None", secure: true, }); - window.location.href = "https://studysenseai.netlify.app/"; + window.location.href = ""; }) .catch((error) => { console.error("Error occurred while registering user:", error);