not sorted basket

This commit is contained in:
wrzesinski-hubert
2020-11-20 21:20:32 +01:00
parent 47bfd9572c
commit 9a88736584
3 changed files with 15 additions and 3 deletions

View File

@ -125,7 +125,6 @@ export const CoursesProvider = ({ children }: CoursesProviderProps) => {
const { data: courses } = await axios.get<Array<Course>>(
`${process.env.REACT_APP_API_URL}/api/v1/courses/getCoursesWithGroups`,
);
courses.sort((a, b) => (a.name > b.name ? 1 : -1));
setCourses(courses);
} catch (e) {
console.log(e);