File tree Expand file tree Collapse file tree
src/components/Task/Modal/Form Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -118,7 +118,19 @@ export const handleResultChange = ({
118118 result as DisplayResultEnum ,
119119 ActivityTypeEnum . None ,
120120 ) ;
121- const defaultNextAction = findNextAction ( completedAction , nextActions ) ;
121+
122+ // As per Scott's request, we do not set the next action field if the following are true
123+ // - The phase is PartnerCare.
124+ // - The completed action is InitiationSpecialGiftAppeal.
125+ // There has been discussion to add this logic to the constant API.
126+ // When/If that happens, this logic should be removed.
127+ const doNotSetNextAction =
128+ phaseData ?. id === PhaseEnum . PartnerCare ||
129+ completedAction === ActivityTypeEnum . InitiationSpecialGiftAppeal ;
130+
131+ const defaultNextAction = doNotSetNextAction
132+ ? null
133+ : findNextAction ( completedAction , nextActions ) ;
122134 setFieldValue ( 'nextAction' , defaultNextAction ) ;
123135} ;
124136
You can’t perform that action at this time.
0 commit comments