fix(highlight) fix allowing disabled button to execute handler (#11128)

This commit is contained in:
Avram Tudor 2022-03-14 17:18:54 +02:00 committed by GitHub
parent 506f72d43e
commit c5fbe14de2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -43,11 +43,13 @@ export default class AbstractHighlightButton<P: Props> extends Component<P> {
* @returns {void}
*/
_onClick() {
const { dispatch } = this.props;
const { _disabled, dispatch } = this.props;
if (!_disabled) {
dispatch(highlightMeetingMoment());
}
}
}
/**
* Maps (parts of) the Redux state to the associated