Skip to content

Commit

Permalink
Merge pull request #44 from compolabs/feat/lib-refactor
Browse files Browse the repository at this point in the history
[1493] Refactoring
  • Loading branch information
EchoDex authored Oct 14, 2024
2 parents 0866380 + 9cd4d66 commit e0e3baf
Show file tree
Hide file tree
Showing 22 changed files with 1,113 additions and 1,413 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@compolabs/spark-orderbook-ts-sdk",
"version": "1.10.0",
"version": "1.10.1",
"type": "module",
"main": "./dist/index.сjs",
"module": "./dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/IndexerApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ export class IndexerApi extends GraphClient {
},
});

if (!response) {
if (!response.data.TradeOrderEvent.length) {
return {
volume24h: BN.ZERO.toString(),
high24h: BN.ZERO.toString(),
Expand Down
Loading

0 comments on commit e0e3baf

Please sign in to comment.