binbot-charts 0.2.39 → 0.2.42

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -39,7 +39,7 @@ function TVChartContainer(_ref) {
39
39
  const [widgetState, setWidgetState] = (0, _useImmer.useImmer)(null);
40
40
  const [symbolState] = (0, _react.useState)(null);
41
41
  const prevStates = (0, _hooks.usePrevious)({
42
- timescaleMarks: timescaleMarks
42
+ timescaleMarks
43
43
  });
44
44
  (0, _react.useEffect)(() => {
45
45
  if (!widgetState) {
@@ -57,12 +57,9 @@ function TVChartContainer(_ref) {
57
57
  if (prevStates && prevStates.timescaleMarks !== timescaleMarks) {
58
58
  initializeChart();
59
59
  }
60
-
61
- console.log(timescaleMarks);
62
- }, [orderLines, timescaleMarks]);
60
+ }, [orderLines]);
63
61
 
64
62
  const initializeChart = () => {
65
- console.log(timescaleMarks);
66
63
  const widgetOptions = {
67
64
  symbol: symbol,
68
65
  datafeed: new _datafeed.default(timescaleMarks),
@@ -139,8 +139,8 @@ class Datafeed {
139
139
 
140
140
  getTimescaleMarks(symbolInfo, from, to, onDataCallback, resolution) {
141
141
  if (this.timescaleMarks.length > 0) {
142
- console.log(this.timescaleMarks);
143
- onDataCallback(this.timescaleMarks);
142
+ let timescaleMarks = Object.assign([], this.timescaleMarks);
143
+ onDataCallback(timescaleMarks);
144
144
  }
145
145
  }
146
146
 
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.2.39",
2
+ "version": "0.2.42",
3
3
  "name": "binbot-charts",
4
4
  "dependencies": {
5
5
  "react": "^17.0.1",