Skip to content

Commit

Permalink
Merge pull request #673 from paritshivani/prod-main
Browse files Browse the repository at this point in the history
join course issue
  • Loading branch information
paritshivani authored Oct 7, 2024
2 parents 41fb8a4 + 43df083 commit 55eb39a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 0 additions & 2 deletions packages/nulp_elite/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -326,7 +325,6 @@ function App() {
))}
</Routes>
</Router>

</React.Suspense>
{/* </ChakraProvider> */}
{/* </ChakraProvider> */}
Expand Down
3 changes: 2 additions & 1 deletion packages/nulp_elite/src/pages/content/joinCourse.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: "",
});
Expand Down Expand Up @@ -158,6 +158,7 @@ const JoinCourse = () => {
setCourseData(data);
setUserData(data);
if (_userId == data?.result?.content?.createdBy) {
console.log("here");
setIsOwner(true);
}
const identifiers =
Expand Down

0 comments on commit 55eb39a

Please sign in to comment.