( taskId: string, setAppState: SetAppState, awaiting: boolean, )
| 53 | * @param awaiting - Whether teammate is awaiting plan approval |
| 54 | */ |
| 55 | export function setAwaitingPlanApproval( |
| 56 | taskId: string, |
| 57 | setAppState: SetAppState, |
| 58 | awaiting: boolean, |
| 59 | ): void { |
| 60 | updateTaskState<InProcessTeammateTaskState>(taskId, setAppState, task => ({ |
| 61 | ...task, |
| 62 | awaitingPlanApproval: awaiting, |
| 63 | })) |
| 64 | } |
| 65 | |
| 66 | /** |
| 67 | * Handle plan approval response for an in-process teammate. |
no test coverage detected