Skip to content

Commit

Permalink
Update packages/client/src/app/inventory-management/inventory-tools/a…
Browse files Browse the repository at this point in the history
…rticles/articles.component.ts

Co-authored-by: Marc-Antoine <[email protected]>
  • Loading branch information
a-jaillet and Embraser01 authored Jan 14, 2021
1 parent a8ad49d commit 60dc1c9
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -232,12 +232,7 @@ export class ArticlesComponent implements OnInit{
}

public productExist(productName: string): boolean {
if(this.products.map(product => product.name).indexOf(productName)===-1){
return false;
}
else {
return true;
}
return this.products.some(p => p.name === productName);
}

public onConvertKaisse(): void {
Expand Down

0 comments on commit 60dc1c9

Please sign in to comment.