- fixed issues displaying 404 error related html in some pages;
This commit is contained in:
@@ -245,8 +245,8 @@ const routes = ({ role, chosenCompanyId }) => {
|
||||
</DefaultLayout>}/>
|
||||
<Route path="/profilo-aziendale" element={<DefaultLayout>
|
||||
{'ROLE_SUPER_ADMIN' === role ? <PageNotFound/> : null}
|
||||
{'ROLE_BENEFICIARY' === role && chosenCompanyId > 0 ? <ProfileCompany/> : <PageNotFound/>}
|
||||
{'ROLE_CONFIDI' === role && chosenCompanyId > 0 ? <ProfileCompany/> : <PageNotFound/>}
|
||||
{'ROLE_BENEFICIARY' === role ? (chosenCompanyId > 0 ? <ProfileCompany/> : <PageNotFound/>) : null}
|
||||
{'ROLE_CONFIDI' === role ? (chosenCompanyId > 0 ? <ProfileCompany/> : <PageNotFound/>) : null}
|
||||
{'ROLE_PRE_INSTRUCTOR' === role ? <PageNotFound/> : null}
|
||||
{'ROLE_INSTRUCTOR_MANAGER' === role ? <PageNotFound/> : null}
|
||||
</DefaultLayout>}/>
|
||||
|
||||
Reference in New Issue
Block a user