Skip to content

Commit

Permalink
retoques
Browse files Browse the repository at this point in the history
  • Loading branch information
naopeke committed Apr 12, 2024
1 parent 932211c commit 7c4a8cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/pages/mis-mazos/mis-mazos.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ export class MisMazosComponent implements OnInit, AfterViewInit {

public onDecreaseCardQuantityFromChild(cardId: string){
const card = this.mazo?.cards.find(card => card.id === cardId);
if (card && this.mazo && card.quantity > 0) { //para que la cantidad no sea menor que cero
if (card && this.mazo && card.quantity > 1) { //para que la cantidad no sea menor que cero
card.quantity -= 1;
console.log(`Quantity ${cardId}: `, card.quantity);

Expand Down

0 comments on commit 7c4a8cc

Please sign in to comment.