- fixed issue with undefined initial value for text input;

- completed company profile;
- updated logic of creating the application;
This commit is contained in:
Vitalii Kiiko
2024-10-01 14:12:08 +02:00
parent 676d7621e7
commit 340b805643
4 changed files with 49 additions and 14 deletions

View File

@@ -35,7 +35,7 @@ const BandoViewBeneficiario = () => {
const [newQuestion, setNewQuestion] = useState('');
const [applicationObj, setApplicationObj] = useState(true);
const bandoMsgs = useRef(null);
const chosenCompanyId = pathOr(0, [0], companies);
const chosenCompanyId = pathOr(0, [0, 'id'], companies);
const scaricaBando = () => {
@@ -55,7 +55,7 @@ const BandoViewBeneficiario = () => {
navigate(`/imieibandi/${applicationObj.id}`);
} else {
const bandoId = getBandoId();
ApplicationService.createApplication(bandoId, {}, createApplCallback, errCreateApplCallback)
ApplicationService.createApplication(bandoId, {}, createApplCallback, errCreateApplCallback, [['companyId', chosenCompanyId]])
}
}