other fix
This commit is contained in:
@@ -72,7 +72,6 @@ export function reducer(state: ReportState, action: ReportAction): ReportState {
|
|||||||
activeStepIndex1: action.option.key === 'other' ? 3 : 2,
|
activeStepIndex1: action.option.key === 'other' ? 3 : 2,
|
||||||
selectedOption:
|
selectedOption:
|
||||||
action.option.key === 'other' ? action.otherOption : undefined,
|
action.option.key === 'other' ? action.otherOption : undefined,
|
||||||
detailsOpen: state.selectedCategory?.key === 'other',
|
|
||||||
}
|
}
|
||||||
case 'clearCategory':
|
case 'clearCategory':
|
||||||
return {
|
return {
|
||||||
@@ -103,6 +102,7 @@ export function reducer(state: ReportState, action: ReportAction): ReportState {
|
|||||||
...state,
|
...state,
|
||||||
selectedLabeler: action.labeler,
|
selectedLabeler: action.labeler,
|
||||||
activeStepIndex1: 4,
|
activeStepIndex1: 4,
|
||||||
|
detailsOpen: OtherReportReasons.has(state.selectedOption?.reason),
|
||||||
}
|
}
|
||||||
case 'clearLabeler':
|
case 'clearLabeler':
|
||||||
return {
|
return {
|
||||||
|
|||||||
Reference in New Issue
Block a user