diff --git a/app/javascript/flavours/glitch/components/status_reactions.jsx b/app/javascript/flavours/glitch/components/status_reactions.jsx index d750b5f23359d2..5d1fe8698f125f 100644 --- a/app/javascript/flavours/glitch/components/status_reactions.jsx +++ b/app/javascript/flavours/glitch/components/status_reactions.jsx @@ -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} >