From 2570a07d5752c13f9d6dc609736bc0364fd2f4c9 Mon Sep 17 00:00:00 2001 From: Aaron Lindsay Date: Tue, 10 Jan 2017 20:54:46 -0500 Subject: [PATCH] RatioBarChart: Remove unnecessary check It's already (better) handled by BarChart --- js/components/RatioBarChart.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/js/components/RatioBarChart.js b/js/components/RatioBarChart.js index d2d7147..993b3be 100644 --- a/js/components/RatioBarChart.js +++ b/js/components/RatioBarChart.js @@ -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 (
); var numeratorMap = {}; for (var i = 0; i < this.props.numerator.length; i++) {