Fix duplicate priceSelect declaration causing SyntaxError
This commit is contained in:
@ -380,16 +380,6 @@ constructor() {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
// Setup price format selector change handler
|
|
||||||
const priceSelect = document.getElementById("priceFormatSelect");
|
|
||||||
if (priceSelect) {
|
|
||||||
priceSelect.addEventListener("change", (e) => {
|
|
||||||
const precision = parseInt(e.target.value);
|
|
||||||
this.chart.priceScale().applyOptions({
|
|
||||||
priceFormat: { type: "price", precision: precision, minMove: precision===0 ? 1 : 0.0001 }
|
|
||||||
});
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
this.chart.timeScale().subscribeVisibleLogicalRangeChange(this.onVisibleRangeChange.bind(this));
|
this.chart.timeScale().subscribeVisibleLogicalRangeChange(this.onVisibleRangeChange.bind(this));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user