Skip to content

Commit

Permalink
fix: avoid errors with 0 value (#562)
Browse files Browse the repository at this point in the history
  • Loading branch information
nchamo authored Jun 17, 2021
1 parent 818c07f commit da062ae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "decentraland",
"version": "3.5.0",
"version": "3.5.1",
"description": "Decentraland CLI developer tool.",
"bin": {
"dcl": "dist/cli.js"
Expand Down
4 changes: 3 additions & 1 deletion src/utils/logging.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,10 @@ export function formatList(
return buf.concat(separator, formatList(list, options, level + 1, 'array'))
} else if (typeof item === 'object') {
return buf.concat(separator, formatDictionary(item, options, level + 1, 'array'))
} else if (item) {
} else if (item !== undefined) {
return buf.concat(separator, JSON.stringify(item))
} else {
return buf
}
}, '')
} else {
Expand Down

0 comments on commit da062ae

Please sign in to comment.