diff --git a/app/gabsocial/components/button.js b/app/gabsocial/components/button.js index 00aeeeae9..6705b77df 100644 --- a/app/gabsocial/components/button.js +++ b/app/gabsocial/components/button.js @@ -22,10 +22,10 @@ export default class Button extends React.PureComponent { static defaultProps = { size: 36, - }; + } handleClick = (e) => { - if (!this.props.disabled) { + if (!this.props.disabled && this.props.onClick) { this.props.onClick(e); } }