From c46e94cd8804f479f1c82ecc81ea0f66ca6f5cdf Mon Sep 17 00:00:00 2001 From: Ebube Date: Thu, 25 May 2023 10:06:56 +0100 Subject: [PATCH] updated endpoint --- src/components/AuthPages/AuthLayout.jsx | 2 +- src/components/AuthPages/Login/index.jsx | 4 ++-- src/middleware/AuthRoute.jsx | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/AuthPages/AuthLayout.jsx b/src/components/AuthPages/AuthLayout.jsx index 582bc01..1bcd83f 100644 --- a/src/components/AuthPages/AuthLayout.jsx +++ b/src/components/AuthPages/AuthLayout.jsx @@ -4,7 +4,7 @@ import { Link } from "react-router-dom"; export default function LoginLayout({ slogan, children }) { return (
-
+
{children && children} diff --git a/src/components/AuthPages/Login/index.jsx b/src/components/AuthPages/Login/index.jsx index dd37fb5..a22dd60 100644 --- a/src/components/AuthPages/Login/index.jsx +++ b/src/components/AuthPages/Login/index.jsx @@ -187,7 +187,7 @@ export default function Login() {
{ // Getting market data const getMarketActiveJobList = async () => { try { - const res = await apiCall.getActiveJobList(); + const res = await apiCall.getMyJobList(); dispatch(updateJobs(res.data)); } catch (error) { console.log("Error getting mode");