Remove irrelevant button errors in console
This commit is contained in:
		| @@ -6,8 +6,6 @@ import './css/Button.css'; | ||||
| class Button extends Component { | ||||
|     // Multiple onClick functions | ||||
|     onClick = () => { | ||||
|         console.log(this.props.onClick); | ||||
|  | ||||
|         if (this.props.onClick !== null | ||||
|             && this.props.onClick !== undefined) { | ||||
|             if (Array.isArray(this.props.onClick)) { | ||||
| @@ -17,8 +15,6 @@ class Button extends Component { | ||||
|             } else { | ||||
|                 console.log("Error when parsing Button onClick functions."); | ||||
|             } | ||||
|         } else { | ||||
|             console.log("Error when parsing Button onClick functions."); | ||||
|         } | ||||
|     } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 André Wahlberg
					André Wahlberg