...
This commit is contained in:
parent
d1fb48f7fe
commit
cf042413d6
@ -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,
|
||||
};
|
||||
|
@ -28,6 +28,7 @@ export interface Group {
|
||||
export interface Course {
|
||||
id: number;
|
||||
name: string;
|
||||
symbol:string;
|
||||
lectures?: Array<Group>;
|
||||
classes?: Array<Group>;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user