Skip to content

Commit 46b5b6d

Browse files
author
Neil Camilleri
committed
refactor: removed console logging
1 parent 6dc2200 commit 46b5b6d

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

src/app/movie-grid/movie-grid.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ export class MovieGridComponent {
2424
}
2525

2626
search(query: string) {
27-
console.log(event);
2827
this.filteredMovies = this.moviesList.filter((m) =>
2928
m.title.toLowerCase().startsWith(query.toLowerCase())
3029
);

src/app/movies/movie.service.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,8 @@ export class MovieService {
4646
try {
4747
const collection = this.storage.retrieve('collection') || [];
4848

49-
console.log(id, collection);
50-
5149
const updatedCollection = collection.filter((m) => m.tmdbId !== id);
5250

53-
console.log(updatedCollection);
54-
5551
this.storage.store('collection', updatedCollection);
5652
this.toastr.success(`Movie removed`);
5753
} catch (error) {

0 commit comments

Comments
 (0)