Skip to content

Commit

Permalink
set 0 wen data not found
Browse files Browse the repository at this point in the history
  • Loading branch information
dtmkeng committed Jul 3, 2023
1 parent 2ece40d commit 1851950
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dexs/equity-spot/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const getFetch = (chain: string): Fetch => async (timestamp: number) => {
dailyVolume:
dailyData.volumeStats.length == 1
? String(Number(Object.values(dailyData.volumeStats[0]).reduce((sum, element) => String(Number(sum) + Number(element)))) * 10 ** -30)
: undefined,
: '0',
totalVolume:
totalData.volumeStats.length == 1
? String(Number(Object.values(totalData.volumeStats[0]).reduce((sum, element) => String(Number(sum) + Number(element)))) * 10 ** -30)
Expand Down

0 comments on commit 1851950

Please sign in to comment.