Skip to content

Commit

Permalink
fix: return zero when empty data
Browse files Browse the repository at this point in the history
  • Loading branch information
vien.nguyen2-tiki committed Feb 15, 2023
1 parent a6114f0 commit 51cc37f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,5 +204,5 @@ export function convertBigNumberToString(x: any) {
x += new Array(e + 1).join('0')
}
}
return x.toString()
return isEmpty(x.toString()) ? '0' : x.toString()
}

0 comments on commit 51cc37f

Please sign in to comment.