Merge branch 'master' into develop

This commit is contained in:
Vitalii Kiiko
2026-01-09 15:31:23 +01:00
2 changed files with 5 additions and 12 deletions

View File

@@ -215,7 +215,7 @@ const AllBandiAccordion = ({ showOnlyPreferred = false, isAntiMoneylaundry = fal
{!isCallExpired && !isCallScheduled && !isEmpty(chosenCompanyId) && chosenCompanyId !== 0 && (!data.confidi
|| (data.confidi && data.id === 6 && REACT_APP_HUB_ID === 'p4lk3bcx1RStqTaIVVbXs'))
? <Button onClick={() => goToBandoPage(data.id)} severity="info">
{__('Partecipa', 'gepafin')}
{isAntiMoneylaundry ? __('Compila', 'gepafin') : __('Partecipa', 'gepafin')}
</Button> : null}
{isCallExpired
? <p><Badge value={__('È scaduto', 'gepafin')} severity="danger"></Badge></p> : null}
@@ -224,7 +224,9 @@ const AllBandiAccordion = ({ showOnlyPreferred = false, isAntiMoneylaundry = fal
{isCallExpired || isCallScheduled || (!isEmpty(chosenCompanyId) && chosenCompanyId !== 0 && data.confidi
&& (data.id !== 6 || (data.id === 6 && REACT_APP_HUB_ID !== 'p4lk3bcx1RStqTaIVVbXs')))
? <Button onClick={() => goToBandoPage(data.id)} severity="info">
{data.allowMultipleApplications ? __('Partecipa', 'gepafin') : __('Mostra', 'gepafin')}
{data.allowMultipleApplications
? isAntiMoneylaundry ? __('Compila', 'gepafin') : __('Partecipa', 'gepafin')
: __('Mostra', 'gepafin')}
</Button> : null}
</div>
);

View File

@@ -168,16 +168,7 @@ const EvaluationExtraFiles = ({
}
}
const errGetDocsCallback = (resp) => {
if (toast.current && resp.message) {
toast.current.show({
severity: resp.status === 'SUCCESS' ? 'info' : 'error',
summary: '',
detail: resp.message
});
}
set404FromErrorResponse(resp);
}
const errGetDocsCallback = () => {}
useEffect(() => {
CompanyService.getCompanyDocuments(companyId, getDocsCallback, errGetDocsCallback, [