From 870f7574cc0d66cc8043e9bb5b2b6842e5320e2e Mon Sep 17 00:00:00 2001 From: DiTus Date: Wed, 18 Mar 2026 23:30:55 +0100 Subject: [PATCH] Fix duplicate priceSelect declaration causing SyntaxError --- js/ui/chart.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/js/ui/chart.js b/js/ui/chart.js index 348340d..c49fb6a 100644 --- a/js/ui/chart.js +++ b/js/ui/chart.js @@ -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));