This commit is contained in:
wrzesinski-hubert 2021-01-23 23:08:18 +01:00
parent d1fb48f7fe
commit cf042413d6
2 changed files with 2 additions and 0 deletions

View File

@ -125,6 +125,7 @@ export const CoursesProvider = ({ children }: CoursesProviderProps) => {
const courseToBasket: Basket = {
name: course.name,
id: course.id,
symbol: course.symbol,
classes: course.classes !== undefined ? course.classes[0] : undefined,
lecture: course.lectures !== undefined ? course.lectures[0] : undefined,
};

View File

@ -28,6 +28,7 @@ export interface Group {
export interface Course {
id: number;
name: string;
symbol:string;
lectures?: Array<Group>;
classes?: Array<Group>;
}