Skip to content

Commit

Permalink
fix: correct usage of prepare candle error throw
Browse files Browse the repository at this point in the history
  • Loading branch information
Keelaro1 committed May 16, 2024
1 parent 8e94f4b commit e6436a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chart/components/chart/candle.functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@ export const deleteCandlesIndex = (candles: Array<Candle>) => {
});
};

export const isCandle = (value: unknown): value is Candle => value !== undefined;
export const isCandle = (value: Candle | undefined): value is Candle => value !== undefined;

0 comments on commit e6436a0

Please sign in to comment.