build warning fix

This commit is contained in:
2025-06-13 12:53:51 +01:00
parent 4cea869256
commit b4451dc7ee
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -15,7 +15,7 @@ import {
touch, touch,
SubmissionError, SubmissionError,
} from "redux-form"; } from "redux-form";
import { connect, submitError } from "react-redux"; import { connect } from "react-redux";
import { createCRMTask, sendEmail } from "../actions"; import { createCRMTask, sendEmail } from "../actions";
import { useState } from "react"; import { useState } from "react";
@@ -527,7 +527,7 @@ export default connect(
destroyOnUnmount: false, destroyOnUnmount: false,
touchOnBlur: true, touchOnBlur: true,
touchOnChange: true, touchOnChange: true,
onSubmitFail: (errors, dispatch, subnittError, props) => { onSubmitFail: (errors, dispatch, submitError, props) => {
if (errors) { if (errors) {
// Touch all fields with errors so validation messages appear // Touch all fields with errors so validation messages appear
const errorFields = Object.keys(errors); const errorFields = Object.keys(errors);
+2 -2
View File
@@ -15,7 +15,7 @@ import {
touch, touch,
SubmissionError, SubmissionError,
} from "redux-form"; } from "redux-form";
import { connect, submitError } from "react-redux"; import { connect } from "react-redux";
import { createCRMTask, sendEmail } from "../../actions"; import { createCRMTask, sendEmail } from "../../actions";
import { useState } from "react"; import { useState } from "react";
@@ -528,7 +528,7 @@ export default connect(
destroyOnUnmount: false, destroyOnUnmount: false,
touchOnBlur: true, touchOnBlur: true,
touchOnChange: true, touchOnChange: true,
onSubmitFail: (errors, dispatch, subnittError, props) => { onSubmitFail: (errors, dispatch, submitError, props) => {
if (errors) { if (errors) {
// Touch all fields with errors so validation messages appear // Touch all fields with errors so validation messages appear
const errorFields = Object.keys(errors); const errorFields = Object.keys(errors);