Skip to content
This repository has been archived by the owner on Oct 1, 2019. It is now read-only.

Commit

Permalink
FollowTagButton: Use immutable.js Map notation of 'followed_tags'
Browse files Browse the repository at this point in the history
Fix the fact that 'isFollowed' is always equal to 'false'.
  • Loading branch information
artkravchenko authored and voidxnull committed Nov 20, 2016
1 parent 452db6e commit 42c4376
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/follow-tag-button.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export default class FollowTagButton extends React.Component {
return null;
}
} else {
const isFollowed = !!followed_tags[this.props.tag];
const isFollowed = !!followed_tags.get(this.props.tag);

if (isFollowed) {
return <button {...buttonProps} className={`button button-yellow ${className}`} type="button" onClick={this._unfollowTag}>Following</button>;
Expand Down

0 comments on commit 42c4376

Please sign in to comment.