diff --git a/src/components/Verification/Verification.tsx b/src/components/Verification/Verification.tsx index 1a50b7984..20bfa1a74 100644 --- a/src/components/Verification/Verification.tsx +++ b/src/components/Verification/Verification.tsx @@ -2,7 +2,7 @@ import type { AxiosResponse } from 'axios'; import { Alert, Button } from 'flowbite-react'; -import React, { useEffect, useRef, useState } from 'react'; +import React, { useEffect, useState } from 'react'; import { getFromLocalStorage } from '../../api/Auth'; import { apiStatusCodes, storageKeys } from '../../config/CommonConstant'; import BreadCrumbs from '../BreadCrumbs'; @@ -37,7 +37,6 @@ const VerificationCred = () => { const [attributeData, setAttributeData] = useState( null, ); - const inputRefs = useRef([]); const handleCheckboxChange = (attributeName: string) => { setAttributeData( @@ -80,7 +79,6 @@ const VerificationCred = () => { return attribute; }), ); - inputRefs?.current[attributeName]?.focus(); }; const validateInputs = () => { @@ -272,9 +270,6 @@ const VerificationCred = () => { ? 'opacity-50 cursor-not-allowed' : 'cursor-pointer' } p-1 border border-black rounded-md`} - ref={(ref) => - (inputRefs.current[attribute?.attributeName] = ref) - } /> )} {attribute?.inputError && ( diff --git a/src/config/ecosystem.ts b/src/config/ecosystem.ts index b28a254b5..b5df99a4a 100644 --- a/src/config/ecosystem.ts +++ b/src/config/ecosystem.ts @@ -57,7 +57,7 @@ const checkEcosystem = async (): Promise => { const isMultiEcosystem = userData?.multiEcosystemSupport; // const isMultiEcosystem = false - const isLead = ecosystemRole === EcosystemRoles.ecosystemLead && isEnabledEcosystem && (orgRoles.includes(Roles.ADMIN) || orgRoles.includes(Roles.OWNER)) + const isLead = ecosystemRole === EcosystemRoles.ecosystemLead && isEnabledEcosystem return { isEnabledEcosystem,