From e5c91efbd9131d37974e945d07117346c660357b Mon Sep 17 00:00:00 2001 From: Jack Ord Date: Thu, 9 Nov 2023 09:15:46 +0000 Subject: [PATCH] Add todo about max --- packages/core/src/context/experiment/experiment-reducers.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/core/src/context/experiment/experiment-reducers.ts b/packages/core/src/context/experiment/experiment-reducers.ts index 755b59a1..512388f7 100644 --- a/packages/core/src/context/experiment/experiment-reducers.ts +++ b/packages/core/src/context/experiment/experiment-reducers.ts @@ -187,6 +187,7 @@ export const experimentReducer = produce( break case 'updateSuggestionCount': { const payloadVal = Number(action.payload.suggestionCount) + // TODO: Move max out of reducer if used in application settings const maxSuggestionCount = action.payload.maxSuggestionCount ?? Number.MAX_VALUE state.extras.experimentSuggestionCount = Math.max(