Skip to content

Commit

Permalink
Merge pull request #40 from tradingview/timocov-patch-1
Browse files Browse the repository at this point in the history
Fixed copy-paste issue with barsInLogicalRange method
  • Loading branch information
makedonsky94 authored Feb 21, 2022
2 parents b52b9a7 + c01e534 commit fb32e1f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public extension SeriesApi where Self: SeriesObject {
}

func barsInLogicalRange(range: FromToRange<Double>, completion: @escaping (BarsInfo?) -> Void) {
let script = "\(jsName).setData(\(range.jsonString));"
let script = "\(jsName).barsInLogicalRange(\(range.jsonString));"
context.decodedResult(forScript: script, completion: completion)
}

Expand Down

0 comments on commit fb32e1f

Please sign in to comment.