Skip to content

Commit

Permalink
fix: picked courses are now being correctly stored
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaspalma committed Aug 16, 2024
1 parent cc15919 commit ce87ecb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ const CoursePicker = () => {

useEffect(() => {
BackendAPI.getCoursesClasses(checkboxedCourses).then((courseWithClasses) => {
StorageAPI.setPickedCoursesStorage(courseWithClasses);
setPickedCourses(courseWithClasses);
})
StorageAPI.setPickedCoursesStorage(pickedCourses)
}, [checkboxedCourses])

useEffect(() => {
Expand Down

0 comments on commit ce87ecb

Please sign in to comment.