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 51cc37f commit d469739
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 @@ -189,7 +189,7 @@ export const getTransactionInOrOut = (
}

export function convertBigNumberToString(x: any) {
if (!x) return ''
if (!x) return '0'
if (Math.abs(x) < 1.0) {
var e = parseInt(x.toString().split('e-')[1])
if (e) {
Expand Down

0 comments on commit d469739

Please sign in to comment.