Skip to content

Commit

Permalink
fix: unable to react when anonymous reacting disabled (#74)
Browse files Browse the repository at this point in the history
* fix: unable to react when anonymous reactions disabled

* Apply fixes from StyleCI

---------

Co-authored-by: StyleCI Bot <bot@styleci.io>
  • Loading branch information
imorland and StyleCIBot authored Oct 23, 2023
1 parent 308fd32 commit 53833e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/src/forum/components/PostReactAction.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export default class PostReactAction extends Component {
return;
}

if (!this.post.canReact() || !allowAnonymous) {
if (!this.post.canReact()) {
return app.alerts.show({ type: 'error' }, app.translator.trans('core.lib.error.permission_denied_message'));
}

Expand Down

0 comments on commit 53833e2

Please sign in to comment.