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 (#4524)
  • Loading branch information
gemscng authored and Noviny committed Feb 25, 2018
1 parent 80cef2a commit 5fca1f5
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 5fca1f5

Please sign in to comment.