Skip to content

Commit

Permalink
Remove log
Browse files Browse the repository at this point in the history
  • Loading branch information
Popovkov57 committed Sep 28, 2022
1 parent 5e7f758 commit 4696b91
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/app/model/cart.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,8 @@ export class Cart {
}

removeLine(id: number) {
console.log("removeLine");
console.log("id: " + id);
let index = this.lines.findIndex(line => line.product.id == id);
console.log("index: " + index)
console.log(this.lines);
this.lines.splice(index, 1);
console.log(this.lines);
this.recalculate();
}

Expand Down

0 comments on commit 4696b91

Please sign in to comment.