Fix button error

This commit is contained in:
Alex Gleason 2020-04-23 09:19:50 -05:00
parent f1c9453620
commit 71b4bb4d06
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -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);
}
}