Skip to content

Commit

Permalink
Merge pull request #117 from TigerAppsOrg/remove-limit
Browse files Browse the repository at this point in the history
Remove course adding limit
  • Loading branch information
joshuamotoaki authored Nov 13, 2024
2 parents dd9fac3 + 4b23874 commit ba9432d
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions apps/web/src/lib/scripts/ReCal+/cardFunctions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import type { SupabaseClient } from "@supabase/supabase-js";
import { getCurrentSchedule } from "./getters";
import { get } from "svelte/store";
import { sectionData } from "$lib/stores/rsections";
import { toastStore } from "$lib/stores/toast";
import { hoveredCourse } from "$lib/scripts/ReCal+/calendar";

//----------------------------------------------------------------------
Expand All @@ -24,12 +23,6 @@ const saveCourseFromSearch = async (
// Check if section data is loaded
if (!get(sectionData)[course.term][course.id]) return;

// Check if schedule is at capacity
if (get(savedCourses)[getCurrentSchedule()].length >= 50) {
toastStore.add("error", "Schedules are limited to 50 courses.");
return;
}

hoveredCourse.set(null);
await savedCourses.add(supabase, getCurrentSchedule(), course, true);
};
Expand Down

0 comments on commit ba9432d

Please sign in to comment.