Skip to content

Commit

Permalink
some err fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ShivanshPlays committed Nov 10, 2024
1 parent d160af5 commit 76b9abf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions client/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ import EditProfile from "./component/EditProfile";
import Contributors from "./component/Contributors";
import Discussion from "./component/Discussion";
import Admin from "./component/Admin";
import Dashboard from "./component/Dashboard";
import ForgotPassword from "./component/ForgotPassword";
import ResetPassword from "./component/ResetPassword";
import NotFound from "./component/NotFound";
Expand Down Expand Up @@ -140,7 +139,6 @@ function App() {
<Route exact path='/editprofile' element={<EditProfile mode={mode} setProgress={setProgress} showAlert={showAlert} />} />
<Route exact path="/login" element={<Login mode={mode} setProgress={setProgress} showAlert={showAlert} loggedin={islogged} setloggedin={setloggedin} />} />
<Route exact path="/admin" element={<Admin mode={mode} setProgress={setProgress} showAlert={showAlert} />} />
<Route exact path="/dashboard" element={<Dashboard/>} />
<Route exact path='/signup' element={<Signup mode={mode} setProgress={setProgress} showAlert={showAlert} />} />
<Route exact path='/forgot-password' element={<ForgotPassword mode={mode} setProgress={setProgress} showAlert={showAlert} />} />
<Route exact path='/reset-password' element={<ResetPassword mode={mode} setProgress={setProgress} showAlert={showAlert} />} />
Expand Down
2 changes: 1 addition & 1 deletion client/src/component/Admin.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ const Admin = ({ mode }) => {
// setloggedin(!isloggedin);
console.log("flskd");

return navigate("../dashboard");
return navigate("/");

} else {
toast.error(json.message || "Login failed! Invalid credentials.");
Expand Down

0 comments on commit 76b9abf

Please sign in to comment.