Skip to content

Commit

Permalink
Merge pull request #248 from NIAEFEUP/fix/correctly-store-picked-courses
Browse files Browse the repository at this point in the history
FIX: picked courses are now being correctly stored
  • Loading branch information
tomaspalma authored Aug 17, 2024
2 parents cc15919 + ce87ecb commit 130c297
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 130c297

Please sign in to comment.