Fix up favorites

Found a couple of typos now that API can process favorites.
This commit is contained in:
chrisgarrity 2018-05-30 14:39:25 -04:00
parent 80de164d02
commit 99ed30e2c8
2 changed files with 2 additions and 2 deletions

View file

@ -184,7 +184,7 @@ const PreviewPresentation = props => {
{loveCount} {loveCount}
</div> </div>
<div <div
className={classNames('project-favorites', {faved: faved})} className={classNames('project-favorites', {favorited: faved})}
key="favorites" key="favorites"
onClick={onFavoriteClicked} onClick={onFavoriteClicked}
> >

View file

@ -322,7 +322,7 @@ const mapDispatchToProps = dispatch => ({
dispatch(previewActions.getFavedStatus(id, username, token)); dispatch(previewActions.getFavedStatus(id, username, token));
}, },
setFavedStatus: (faved, id, username, token) => { setFavedStatus: (faved, id, username, token) => {
dispatch(previewActions.setLovedStatus(faved, id, username, token)); dispatch(previewActions.setFavedStatus(faved, id, username, token));
}, },
getLovedStatus: (id, username, token) => { getLovedStatus: (id, username, token) => {
dispatch(previewActions.getLovedStatus(id, username, token)); dispatch(previewActions.getLovedStatus(id, username, token));