diff --git a/stockingly-frontend/src/components/StockPrice.vue b/stockingly-frontend/src/components/StockPrice.vue index f315d2e..d4d31e3 100644 --- a/stockingly-frontend/src/components/StockPrice.vue +++ b/stockingly-frontend/src/components/StockPrice.vue @@ -111,7 +111,9 @@ const maxPrice = computed(() => { if (Date.parse(d.date) > maxDate) { maxDate = Date.parse(d.date); for (const ticker in maxVal) { - maxVal[ticker] = d[ticker] as number; + if (typeof d[ticker] === 'number' && !isNaN(d[ticker] as number)) { + maxVal[ticker] = d[ticker] as number; + } } } }