Skip to content

Commit

Permalink
fix dev mode
Browse files Browse the repository at this point in the history
  • Loading branch information
trash-and-fire committed May 31, 2022
1 parent b8d8b0d commit 93cabd3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/lib/src/internal/price-line.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ export function priceLine<T extends SeriesActionParams>(
target: SeriesActionResult<T>,
params: PriceLineParams
): PriceLineActionResult {
// TODO: wait 4.0
const subject = (target.subject().createPriceLine as () => IPriceLine)();
// TODO: this works well but throw in dev mode if price is not provided
const subject = (target.subject().createPriceLine as (options: Partial<PriceLineOptions>) => IPriceLine)({ price: 0 });
const defaults = clone(subject.options());
subject.applyOptions(params);
return {
Expand Down

0 comments on commit 93cabd3

Please sign in to comment.