RatioBarChart: Remove unnecessary check
It's already (better) handled by BarChart
This commit is contained in:
		@@ -5,14 +5,13 @@ var BarChart = require('../components/BarChart')
 | 
			
		||||
module.exports = React.createClass({
 | 
			
		||||
	displayName: "RatioBarChart",
 | 
			
		||||
	render: function() {
 | 
			
		||||
		/* Expects 'this.props.numerator' and '.denominator' to be in the form:
 | 
			
		||||
		/* Expects 'this.props.numerator' and 'this.props.denominator' to be in
 | 
			
		||||
		 * the form:
 | 
			
		||||
		 * [
 | 
			
		||||
		 * 	{'Label': 'foo', 'Value': 1.4},
 | 
			
		||||
		 * 	{'Label': 'bar', 'Value': 8}
 | 
			
		||||
		 * ]
 | 
			
		||||
		 */
 | 
			
		||||
		if (this.props.denominator.length < 1)
 | 
			
		||||
			return (<div />);
 | 
			
		||||
 | 
			
		||||
		var numeratorMap = {};
 | 
			
		||||
		for (var i = 0; i < this.props.numerator.length; i++) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user