other fix

This commit is contained in:
Hailey
2025-09-24 21:49:43 -07:00
committed by Eric Bailey
parent 020feec15b
commit 45d9c5561f
@@ -72,7 +72,6 @@ export function reducer(state: ReportState, action: ReportAction): ReportState {
activeStepIndex1: action.option.key === 'other' ? 3 : 2,
selectedOption:
action.option.key === 'other' ? action.otherOption : undefined,
detailsOpen: state.selectedCategory?.key === 'other',
}
case 'clearCategory':
return {
@@ -103,6 +102,7 @@ export function reducer(state: ReportState, action: ReportAction): ReportState {
...state,
selectedLabeler: action.labeler,
activeStepIndex1: 4,
detailsOpen: OtherReportReasons.has(state.selectedOption?.reason),
}
case 'clearLabeler':
return {