Skip to content

Commit

Permalink
Merge pull request #94 from DefiLlama/patchMissingEndpoints
Browse files Browse the repository at this point in the history
patch
  • Loading branch information
waynebruce0x committed Sep 20, 2024
2 parents a9e207a + 446ad52 commit 7dd1198
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion utils/convertToChartData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,10 @@ async function appendMissingDataSections(
);
} catch {}
let body = res.body ? JSON.parse(res.body) : [];
res = body && body.length ? body.documentedData?.data ?? body.data : [];
res =
body && body.documentedData?.data.length
? body.documentedData?.data ?? body.data
: [];

if (nullsInApiData(res)) {
await sendMessage(
Expand Down

0 comments on commit 7dd1198

Please sign in to comment.