disable reaction button when not signed in
This commit is contained in:
parent
6ca3f312b7
commit
b01c1f4822
|
@ -168,7 +168,11 @@ const mapDispatchToProps = (dispatch, { intl, contextType }) => ({
|
|||
},
|
||||
|
||||
onReactionAdd (statusId, name, url) {
|
||||
const { signedIn } = this.context.identity;
|
||||
|
||||
if (signedIn) {
|
||||
dispatch(addReaction(statusId, name, url));
|
||||
}
|
||||
},
|
||||
|
||||
onReactionRemove (statusId, name) {
|
||||
|
|
Reference in New Issue