Skip to content

Commit

Permalink
Merge pull request #660 from imf-ali/bug-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lohanidamodar authored Jun 6, 2023
2 parents 4adff79 + efe32a0 commit 020ffd9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/cli/lib/parser.js.twig
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ const parse = (data) => {
drawJSON(data[key]);
}
} else if (typeof data[key] === 'object') {
if (data[key] && data[key].constructor.name === 'BigNumber') {
if (data[key]?.constructor?.name === 'BigNumber') {
console.log(`${chalk.yellow.bold(key)} : ${data[key]}`);
} else {
console.log(`${chalk.yellow.bold.underline(key)}`)
parse(data[key]);
drawTable([data[key]]);
}
} else {
console.log(`${chalk.yellow.bold(key)} : ${data[key]}`);
Expand Down

0 comments on commit 020ffd9

Please sign in to comment.