- enabled fiscal code field for flow 2;

This commit is contained in:
Vitalii Kiiko
2024-12-02 11:12:30 +01:00
parent 1cf9926f0a
commit 92ac388a5b
2 changed files with 3 additions and 2 deletions

View File

@@ -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');

View File

@@ -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}