From e58855d5825f581192e3c8b2c4a917c1c63496bf Mon Sep 17 00:00:00 2001 From: Essem Date: Tue, 26 Nov 2024 12:32:18 -0600 Subject: [PATCH] Fix status reactions not animating on hover when logged out --- .../flavours/glitch/components/status_reactions.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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} >