(actionData, feedback = '', type = '')
| 863 | } |
| 864 | |
| 865 | const onSubmitResponse = (actionData, feedback = '', type = '') => { |
| 866 | let fbType = feedbackType |
| 867 | if (type) { |
| 868 | fbType = type |
| 869 | } |
| 870 | const question = feedback ? feedback : fbType.charAt(0).toUpperCase() + fbType.slice(1) |
| 871 | handleSubmit(undefined, question, undefined, { |
| 872 | type: fbType, |
| 873 | startNodeId: actionData?.nodeId, |
| 874 | feedback |
| 875 | }) |
| 876 | } |
| 877 | |
| 878 | const handleSubmitFeedback = () => { |
| 879 | if (pendingActionData) { |
no test coverage detected