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

View File

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