Skip to content

Commit

Permalink
fix(hapi-evm): fix undefined value
Browse files Browse the repository at this point in the history
  • Loading branch information
Torresmorah committed Nov 28, 2023
1 parent 5cbfd6d commit 5782dd9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hapi-evm/src/services/partial-ath.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ export const getATHInRange = async (
const row = rows[0] as Stats

return {
ath_blocks: row.ath_blocks,
ath_transactions_count: Number(row.ath_transactions_count) || 0,
ath_gas_used: Number(row.ath_gas_used)
ath_blocks: row?.ath_blocks,
ath_transactions_count: Number(row?.ath_transactions_count) || 0,
ath_gas_used: Number(row?.ath_gas_used) || 0
} as Stats
}

0 comments on commit 5782dd9

Please sign in to comment.