disable reaction button when not signed in
This commit is contained in:
parent
53e8307a6b
commit
695d93adf9
@ -179,7 +179,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) {
|
||||
|
Loading…
Reference in New Issue
Block a user