Skip to content

Commit

Permalink
Fix status reactions not animating on hover when logged out
Browse files Browse the repository at this point in the history
  • Loading branch information
TheEssem committed Dec 2, 2024
1 parent 5b781ab commit e58855d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ class Reaction extends ImmutablePureComponent {
};

handleClick = () => {
const { reaction, statusId, addReaction, removeReaction } = this.props;
const { reaction, statusId, addReaction, removeReaction, canReact } = this.props;
if (!canReact) return;

if (reaction.get('me') && removeReaction) {
removeReaction(statusId, reaction.get('name'));
Expand All @@ -111,7 +112,6 @@ class Reaction extends ImmutablePureComponent {
onClick={this.handleClick}
onMouseEnter={this.handleMouseEnter}
onMouseLeave={this.handleMouseLeave}
disabled={!this.props.canReact}
style={this.props.style}
>
<span className='reactions-bar__item__emoji'>
Expand Down

0 comments on commit e58855d

Please sign in to comment.