From 71b4bb4d06143c3b6eed18e08c83c0f8823d3c90 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Thu, 23 Apr 2020 09:19:50 -0500 Subject: [PATCH] Fix button error --- app/gabsocial/components/button.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } }