disable reaction button when not signed in

This commit is contained in:
fef 2022-12-03 16:55:37 +00:00 committed by neatchee
parent 1ad2c68912
commit 0eec369211

View file

@ -166,7 +166,11 @@ const mapDispatchToProps = (dispatch, { intl, contextType }) => ({
},
onReactionAdd (statusId, name, url) {
dispatch(addReaction(statusId, name, url));
const { signedIn } = this.context.identity;
if (signedIn) {
dispatch(addReaction(statusId, name, url));
}
},
onReactionRemove (statusId, name) {