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