no problem state ticket
This commit is contained in:
parent
fed8548f05
commit
3eacd49491
1 changed files with 3 additions and 1 deletions
|
@ -83,7 +83,9 @@ export default class Stock extends React.Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (already){
|
if (already){
|
||||||
this.state.articlesJamalette[j].quantity++;
|
let articles = this.state.articlesJamalette;
|
||||||
|
articles[j].quantity++;
|
||||||
|
this.setState({articlesJamalette:articles})
|
||||||
} else {
|
} else {
|
||||||
current.realQuantity = current.quantity;
|
current.realQuantity = current.quantity;
|
||||||
current.quantity = 1;
|
current.quantity = 1;
|
||||||
|
|
Loading…
Reference in a new issue