Skip to content

Commit

Permalink
fix public showing no course found bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Sainaamr committed Feb 2, 2024
1 parent 1786263 commit be948de
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ class PublicCoursesState extends ConsumerState<PublicCourses> {
void _initializeCourses() {
final userViewModelNotifier = ref.read(userViewModelProvider.notifier);
Future.microtask(() async {
await userViewModelNotifier.fetchPublicCourses();
await userViewModelNotifier.fetchSemesters();
await userViewModelNotifier.fetchPublicCourses();
});
}

Expand Down

0 comments on commit be948de

Please sign in to comment.