Skip to content

Commit

Permalink
Merge pull request #39 from seanc/develop
Browse files Browse the repository at this point in the history
fix(formatter): zero triggering fallback return
  • Loading branch information
RomainLanz committed Feb 7, 2019
2 parents 0b0eff2 + f111616 commit e54c93f
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 e54c93f

Please sign in to comment.