bugfixing

This commit is contained in:
MuslemRahimi 2025-04-04 00:16:19 +02:00
parent e4021c5213
commit 1db9b80815
2 changed files with 6 additions and 6 deletions

View File

@ -341,7 +341,7 @@
graphBaseClose = oneMonthPrice?.at(0)?.close;
config = plotData(oneMonthPrice) || null;
break;
case "ytd":
case "YTD":
currentDataRow = ytdPrice?.at(-1);
graphBaseClose = ytdPrice?.at(0)?.close;
config = plotData(ytdPrice) || null;
@ -469,8 +469,8 @@
lastValue = null;
}
break;
case "ytd":
displayData = "ytd";
case "YTD":
displayData = "YTD";
await historicalPrice("ytd");
if (ytdPrice?.length !== 0) {
displayLastLogicalRangeValue = ytdPrice?.at(0)?.close;

View File

@ -340,7 +340,7 @@
graphBaseClose = oneMonthPrice?.at(0)?.close;
config = plotData(oneMonthPrice) || null;
break;
case "ytd":
case "YTD":
currentDataRow = ytdPrice?.at(-1);
graphBaseClose = ytdPrice?.at(0)?.close;
config = plotData(ytdPrice) || null;
@ -468,8 +468,8 @@
lastValue = null;
}
break;
case "ytd":
displayData = "ytd";
case "YTD":
displayData = "YTD";
await historicalPrice("ytd");
if (ytdPrice?.length !== 0) {
displayLastLogicalRangeValue = ytdPrice?.at(0)?.close;