diff --git a/src/routes/etf/[tickerID]/options/hottest-contracts/+page.svelte b/src/routes/etf/[tickerID]/options/hottest-contracts/+page.svelte index d1103d51..72cae628 100644 --- a/src/routes/etf/[tickerID]/options/hottest-contracts/+page.svelte +++ b/src/routes/etf/[tickerID]/options/hottest-contracts/+page.svelte @@ -67,12 +67,6 @@ function computeOTM(strikePrice, optionType) { // Get the current stock price const currentPrice = data?.getStockQuote?.price; - - // Ensure the current price and strike price are valid numbers - if (typeof currentPrice !== "number" || typeof strikePrice !== "number") { - throw new Error("Invalid current price or strike price"); - } - let otmPercentage = 0; if (optionType === "C") { diff --git a/src/routes/stocks/[tickerID]/options/hottest-contracts/+page.svelte b/src/routes/stocks/[tickerID]/options/hottest-contracts/+page.svelte index d1103d51..0a42243f 100644 --- a/src/routes/stocks/[tickerID]/options/hottest-contracts/+page.svelte +++ b/src/routes/stocks/[tickerID]/options/hottest-contracts/+page.svelte @@ -68,11 +68,6 @@ // Get the current stock price const currentPrice = data?.getStockQuote?.price; - // Ensure the current price and strike price are valid numbers - if (typeof currentPrice !== "number" || typeof strikePrice !== "number") { - throw new Error("Invalid current price or strike price"); - } - let otmPercentage = 0; if (optionType === "C") {