Skip to content

Commit

Permalink
patch
Browse files Browse the repository at this point in the history
  • Loading branch information
waynebruce0x committed Sep 20, 2024
1 parent 9721744 commit 35ec0d6
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 35ec0d6

Please sign in to comment.