Skip to content

Commit d388825

Browse files
authored
fix favouriting in article preview
1 parent 7cb5876 commit d388825

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)