Skip to content

Commit

Permalink
Fixed #973 - ProgressBar does not show value for 0%
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed Aug 28, 2019
1 parent 22c48cf commit 0671f2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/progressbar/ProgressBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export class ProgressBar extends Component {
};

renderLabel() {
if (this.props.showValue && this.props.value) {
if (this.props.showValue && this.props.value != null) {
let label = this.props.displayValueTemplate ? this.props.displayValueTemplate(this.props.value) : this.props.value + this.props.unit;
return (
<div className="p-progressbar-label">{label}</div>
Expand Down

0 comments on commit 0671f2a

Please sign in to comment.