From 2056b84dfb4c49e4e75c309695a5c1f55bc9d600 Mon Sep 17 00:00:00 2001 From: Ezinwa Okpoechi Date: Mon, 20 Feb 2017 17:38:48 +0100 Subject: [PATCH] fix(Progress): do not show progress without progress or label props --- src/modules/Progress/Progress.js | 1 - test/specs/modules/Progress/Progress-test.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/modules/Progress/Progress.js b/src/modules/Progress/Progress.js index 5af5fec978..15f1429e91 100644 --- a/src/modules/Progress/Progress.js +++ b/src/modules/Progress/Progress.js @@ -143,7 +143,6 @@ class Progress extends Component { const { label, precision, progress, total, value } = this.props if (label || progress || !_.isUndefined(precision)) return true - return !(_.every([total, value], _.isUndefined)) } render() { diff --git a/test/specs/modules/Progress/Progress-test.js b/test/specs/modules/Progress/Progress-test.js index 886132094f..2189396ecc 100644 --- a/test/specs/modules/Progress/Progress-test.js +++ b/test/specs/modules/Progress/Progress-test.js @@ -191,7 +191,7 @@ describe('Progress', () => { describe('total/value', () => { it('calculates the percent complete', () => { - shallow() + shallow() .children() .find('.progress') .should.contain.text('50%')