Skip to content

Commit 0580c6f

Browse files
DinoxhCopilot
andauthored
Update my-app/src/model.js
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent ef92fad commit 0580c6f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

my-app/src/model.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export const model = {
4444
},
4545

4646
removeFavourite(course) {
47-
this.favourites = (this.favourites || []).filter(fav => fav !== course);
47+
this.favourites = (this.favourites || []).filter(fav => fav.code !== course.code);
4848
},
4949

5050
getCourse(courseID) {

0 commit comments

Comments
 (0)