Skip to content

Commit

Permalink
Should check undefined instead, otherwise value === 0 will not be abl…
Browse files Browse the repository at this point in the history
…e to show
  • Loading branch information
gemscng committed Nov 30, 2017
1 parent ba13f1a commit 6a72646
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fields/types/number/NumberColumn.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ var NumberColumn = React.createClass({
},
renderValue () {
const value = this.props.data.fields[this.props.col.path];
if (!value || isNaN(value)) return null;
if (value === undefined || isNaN(value)) return null;

const formattedValue = (this.props.col.path === 'money') ? numeral(value).format('$0,0.00') : value;

Expand Down

0 comments on commit 6a72646

Please sign in to comment.