Skip to content

Commit

Permalink
fix(formatter): zero triggering fallback return
Browse files Browse the repository at this point in the history
  • Loading branch information
seanc committed Dec 25, 2018
1 parent 0b0eff2 commit f111616
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Formatter/index.js
Expand Up @@ -48,7 +48,7 @@ class Formatter {
* ```
*/
formatNumber (value, options, fallback) {
if (!value) {
if (!value && value !== 0) {
return fallback || null
}
const formattingOptions = Object.assign({}, options)
Expand Down

0 comments on commit f111616

Please sign in to comment.