Merge pull request #526 from medici/fix/19JuneMerge
remove unnecessary params tp-00
This commit is contained in:
@@ -195,7 +195,7 @@ const Widget: React.FC<IWidget> = (props) => {
|
||||
});
|
||||
};
|
||||
|
||||
const onErrorSubmit = (updatedCaseDetails: any) => {
|
||||
const onErrorSubmit = () => {
|
||||
setIsSubmitting(false);
|
||||
};
|
||||
|
||||
@@ -226,7 +226,7 @@ const Widget: React.FC<IWidget> = (props) => {
|
||||
syncCaseDetail(transformedPayload, {
|
||||
onSuccessCB: (apiCaseData, interactionId: string) =>
|
||||
onSuccessfulSubmit(apiCaseData, interactionId),
|
||||
onErrorCB: () => onErrorSubmit(updatedCase),
|
||||
onErrorCB: onErrorSubmit,
|
||||
})
|
||||
);
|
||||
} else {
|
||||
@@ -277,7 +277,7 @@ const Widget: React.FC<IWidget> = (props) => {
|
||||
syncCaseDetail(transformedPayload, {
|
||||
onSuccessCB: (apiCaseData, interactionId: string) =>
|
||||
onSuccessfulSubmit(apiCaseData, interactionId, nextActions),
|
||||
onErrorCB: () => onErrorSubmit(updatedCase),
|
||||
onErrorCB: onErrorSubmit,
|
||||
})
|
||||
);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user