- enabled fiscal code field for flow 2;
This commit is contained in:
@@ -4,7 +4,6 @@
|
|||||||
* @return {string}
|
* @return {string}
|
||||||
*/
|
*/
|
||||||
const formatDateString = (date) => {
|
const formatDateString = (date) => {
|
||||||
console.log('date', date);
|
|
||||||
const year = date.getFullYear();
|
const year = date.getFullYear();
|
||||||
const month = String(date.getMonth() + 1).padStart(2, '0');
|
const month = String(date.getMonth() + 1).padStart(2, '0');
|
||||||
const day = String(date.getDate()).padStart(2, '0');
|
const day = String(date.getDate()).padStart(2, '0');
|
||||||
|
|||||||
@@ -22,6 +22,8 @@ import CompanyService from '../../service/company-service';
|
|||||||
import { isPIVA, isEmail, isEmailPEC } from '../../helpers/validators';
|
import { isPIVA, isEmail, isEmailPEC } from '../../helpers/validators';
|
||||||
import set404FromErrorResponse from '../../helpers/set404FromErrorResponse';
|
import set404FromErrorResponse from '../../helpers/set404FromErrorResponse';
|
||||||
|
|
||||||
|
const APP_EVALUATION_FLOW_ID = process.env.REACT_APP_EVALUATION_FLOW_ID;
|
||||||
|
|
||||||
const AddCompany = () => {
|
const AddCompany = () => {
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
const isAsyncRequest = useStore().main.isAsyncRequest();
|
const isAsyncRequest = useStore().main.isAsyncRequest();
|
||||||
@@ -186,7 +188,7 @@ const AddCompany = () => {
|
|||||||
|
|
||||||
<FormField
|
<FormField
|
||||||
type="textinput"
|
type="textinput"
|
||||||
disabled={true}
|
disabled={APP_EVALUATION_FLOW_ID === '1'}
|
||||||
fieldName="codiceFiscale"
|
fieldName="codiceFiscale"
|
||||||
label={__('Codice fiscale', 'gepafin')}
|
label={__('Codice fiscale', 'gepafin')}
|
||||||
control={control}
|
control={control}
|
||||||
|
|||||||
Reference in New Issue
Block a user