diff --git a/src/routes/etf/[tickerID]/+page.svelte b/src/routes/etf/[tickerID]/+page.svelte index bbb4a54b..72c321b9 100644 --- a/src/routes/etf/[tickerID]/+page.svelte +++ b/src/routes/etf/[tickerID]/+page.svelte @@ -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; diff --git a/src/routes/index/[tickerID]/+page.svelte b/src/routes/index/[tickerID]/+page.svelte index 45734be0..9c2bca84 100644 --- a/src/routes/index/[tickerID]/+page.svelte +++ b/src/routes/index/[tickerID]/+page.svelte @@ -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;