Skip to content

Commit

Permalink
patch for chart sections in other charts
Browse files Browse the repository at this point in the history
  • Loading branch information
waynebruce0x committed Nov 29, 2023
1 parent 3fe0f05 commit 0ba1de4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utils/convertToChartData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,8 @@ function appendForecast(
(d: ChartSection) => d.section == incompleteSection.key,
);

if (!relatedSections) return;

const reference: number =
unlocked.length > 0 ? unlocked[unlocked.length - 1] : 0;

Expand Down Expand Up @@ -384,7 +386,6 @@ function discreet(raw: RawResult, config: ChartConfig): ChartData {
return { timestamps, unlocked, apiData, isContinuous: false };
}


export function mapToServerData(testData: ChartSection[]) {
const serverData: any[] = testData.map((s: ChartSection) => {
const label = s.section;
Expand Down

0 comments on commit 0ba1de4

Please sign in to comment.