Fix status reactions not animating on hover when logged out

This commit is contained in:
Essem 2024-11-26 12:32:18 -06:00 committed by Jeremy Kescher
parent 1fb818a685
commit 33321d5448
No known key found for this signature in database
GPG key ID: 80A419A7A613DFA4

View file

@ -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'));
@ -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'>