Skip to content

Commit

Permalink
Add todo about max
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack Ord committed Nov 9, 2023
1 parent b7209d3 commit e5c91ef
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit e5c91ef

Please sign in to comment.