Skip to content

Commit

Permalink
dimiss the use of globalState on myCourseNewQuestions
Browse files Browse the repository at this point in the history
  • Loading branch information
itIsJim committed May 8, 2023
1 parent 5e7ed6d commit c92236f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions client/src/GlobalStateProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ const GlobalStateProvider = ({ children }) => {

const [userCourses, setUserCourses] = useState([]);

console.log(myCoursesNewQuestions);

useEffect(() => {
API.getCourses().then((courses) => setAllCourses(courses));
API.getMyCourseNewQuestions(userID).then((questions) => {
Expand Down Expand Up @@ -55,8 +53,6 @@ const GlobalStateProvider = ({ children }) => {
value={{
userInfo,
setUserInfo,
myCoursesNewQuestions,
setMyCoursesNewQuestions,
myBookmarkedQuestions,
setMyBookmarkedQuestions,
mySimulationResult,
Expand All @@ -65,6 +61,7 @@ const GlobalStateProvider = ({ children }) => {
setUserCourses,
allCourses,
setAllCourses,
userID
}}
>
{children}
Expand Down

0 comments on commit c92236f

Please sign in to comment.