Date: Mon, 7 Oct 2024 11:25:26 +0530 Subject: [PATCH 3/3] join course issue --- packages/nulp_elite/src/App.js | 2 -- packages/nulp_elite/src/pages/content/joinCourse.js | 3 ++- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/nulp_elite/src/App.js b/packages/nulp_elite/src/App.js index 7d74c5af..61a632d4 100644 --- a/packages/nulp_elite/src/App.js +++ b/packages/nulp_elite/src/App.js @@ -40,7 +40,6 @@ const routeConfig = require("./configs/routeConfig.json"); import PopupForm from "pages/profileData"; import axios from "axios"; import ReactGA from "react-ga4"; -import LernModal from "components/learnathon/LernModal"; function App() { // const [t] = useTranslation(); @@ -326,7 +325,6 @@ function App() { ))} - {/* */} {/* */} diff --git a/packages/nulp_elite/src/pages/content/joinCourse.js b/packages/nulp_elite/src/pages/content/joinCourse.js index da4be659..024c374b 100644 --- a/packages/nulp_elite/src/pages/content/joinCourse.js +++ b/packages/nulp_elite/src/pages/content/joinCourse.js @@ -76,7 +76,7 @@ const JoinCourse = () => { const [open, setOpen] = useState(false); const [chat, setChat] = useState([]); const [childnode, setChildNode] = useState([]); - const [isOwner, setIsOwner] = useState([]); + const [isOwner, setIsOwner] = useState(false); const [formData, setFormData] = useState({ message: "", }); @@ -158,6 +158,7 @@ const JoinCourse = () => { setCourseData(data); setUserData(data); if (_userId == data?.result?.content?.createdBy) { + console.log("here"); setIsOwner(true); } const identifiers =