From c6a5d8159c353cd66ac330ef71e93b4d3445f571 Mon Sep 17 00:00:00 2001 From: MuslemRahimi Date: Sun, 6 Apr 2025 21:57:34 +0200 Subject: [PATCH] bugfixing --- src/routes/options-calculator/+page.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/options-calculator/+page.svelte b/src/routes/options-calculator/+page.svelte index f871bd87..1ed537e3 100644 --- a/src/routes/options-calculator/+page.svelte +++ b/src/routes/options-calculator/+page.svelte @@ -227,7 +227,7 @@ const dataPoints = []; const xMin = 0; - const xMax = Math.floor(currentStockPrice * 3); + const xMax = Math.floor(Math.max(currentStockPrice, selectedStrike) * 3); const step = 10; if (payoffFunctions[scenarioKey]) {