From b2169e1da74c6ca9252a85c9135907e1c22ff389 Mon Sep 17 00:00:00 2001 From: avraham Date: Fri, 7 Feb 2025 09:36:05 -0500 Subject: [PATCH] adjust moniness step in form --- .../src/pages/HistoricalCalendarPrices/EditableStrike.tsx | 6 +++--- frontend/src/pages/HistoricalCalendarPrices/state.ts | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/src/pages/HistoricalCalendarPrices/EditableStrike.tsx b/frontend/src/pages/HistoricalCalendarPrices/EditableStrike.tsx index fd2f69c..37b76ce 100644 --- a/frontend/src/pages/HistoricalCalendarPrices/EditableStrike.tsx +++ b/frontend/src/pages/HistoricalCalendarPrices/EditableStrike.tsx @@ -16,7 +16,7 @@ function StrikePercentageFromUnderlyingPriceChooser() { valueLabelDisplay="on" min={0} max={10} - step={0.1} + step={1} onChange={(e, value) => { strikePercentageFromUnderlyingPrice.value = value as number; }} @@ -36,8 +36,8 @@ function StrikePercentageFromUnderlyingPriceRadiusChooser() { value={strikePercentageFromUnderlyingPriceRadius.value} valueLabelDisplay="on" min={0} - max={0.5} - step={0.05} + max={10} + step={1} onChange={(e, value) => { strikePercentageFromUnderlyingPriceRadius.value = value as number; }} diff --git a/frontend/src/pages/HistoricalCalendarPrices/state.ts b/frontend/src/pages/HistoricalCalendarPrices/state.ts index 029ef26..7b44445 100644 --- a/frontend/src/pages/HistoricalCalendarPrices/state.ts +++ b/frontend/src/pages/HistoricalCalendarPrices/state.ts @@ -11,8 +11,8 @@ export const daysToFrontExpiration = signal(14); export const daysBetweenFrontAndBackExpiration = signal(14); -export const strikePercentageFromUnderlyingPrice = signal(1.4); -export const strikePercentageFromUnderlyingPriceRadius = signal(0.05); +export const strikePercentageFromUnderlyingPrice = signal(1); +export const strikePercentageFromUnderlyingPriceRadius = signal(1); export const exitToFrontExpiration = signal(2);