diff --git a/plugins/woocommerce-admin/client/components/d3chart/index.js b/plugins/woocommerce-admin/client/components/d3chart/index.js index 68e66617724..1fcb62626bb 100644 --- a/plugins/woocommerce-admin/client/components/d3chart/index.js +++ b/plugins/woocommerce-admin/client/components/d3chart/index.js @@ -3,7 +3,7 @@ /** * External dependencies */ -import { isEqual } from 'lodash'; +import { isEmpty, isEqual } from 'lodash'; import { Component, createRef } from '@wordpress/element'; import PropTypes from 'prop-types'; import classNames from 'classnames'; @@ -162,7 +162,7 @@ class D3Chart extends Component { } render() { - if ( ! this.props.data ) { + if ( isEmpty( this.props.data ) ) { return null; // TODO: improve messaging } return (