Compare commits

..

No commits in common. "aa62eaef6c5bc8067ba7ee3972ed7042baf43d58" and "cdf43438ccf40af273d7d4efb8c76b707c8c3994" have entirely different histories.

2 changed files with 3 additions and 3 deletions

View file

@ -88,7 +88,7 @@ class ArticleDetails extends React.Component {
this.setState({selected:!this.state.selected},()=>{
console.log(this.state.selected)
if (this.state.selected){
this.props.select(this.props.id)
this.props.select()
} else {
this.props.deselect()
}

View file

@ -46,8 +46,8 @@ export default class Stock extends React.Component {
this.getArticles()
}
select = (id) => {
console.log(id)
select = () => {
this.setState({counter:this.state.counter+1},()=>{
console.log(this.state.counter)
})