Skip to content

Commit

Permalink
fix missing valume
Browse files Browse the repository at this point in the history
  • Loading branch information
dtmkeng committed Oct 28, 2024
1 parent c27ee63 commit 7b1bbab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dexs/mira-ly/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const fetchVolume = async (timestamp: number) => {
const response = (await httpPost(url, body)).pools
.map((e => e.details))
const dailyVolume = response.reduce((acc: any, item: any) => {
return acc + Number(item.volume)
return acc + Number(item?.volume || 0)
}, 0)
return {
dailyVolume: dailyVolume,
Expand Down

0 comments on commit 7b1bbab

Please sign in to comment.