Skip to content

Commit 1846f6d

Browse files
authored
Merge pull request gothinkster#31 from feed1/patch-1
fix favouriting in article preview
2 parents 7cb5876 + d388825 commit 1846f6d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/ArticlePreview.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ const ArticlePreview = props => {
2828
const handleClick = ev => {
2929
ev.preventDefault();
3030
if (article.favorited) {
31-
this.props.unfavorite(article.slug);
31+
props.unfavorite(article.slug);
3232
} else {
33-
this.props.favorite(article.slug);
33+
props.favorite(article.slug);
3434
}
3535
};
3636

0 commit comments

Comments
 (0)