Skip to content

Commit

Permalink
Merge pull request #600 from credebl/develop
Browse files Browse the repository at this point in the history
merge: develop to qa
  • Loading branch information
sanjay-k1910 authored Feb 27, 2024
2 parents 23e1a56 + 570ba89 commit c1ce82b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 1 addition & 6 deletions src/components/Verification/Verification.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -37,7 +37,6 @@ const VerificationCred = () => {
const [attributeData, setAttributeData] = useState<ISelectedUser[] | null>(
null,
);
const inputRefs = useRef([]);

const handleCheckboxChange = (attributeName: string) => {
setAttributeData(
Expand Down Expand Up @@ -80,7 +79,6 @@ const VerificationCred = () => {
return attribute;
}),
);
inputRefs?.current[attributeName]?.focus();
};

const validateInputs = () => {
Expand Down Expand Up @@ -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 && (
Expand Down
2 changes: 1 addition & 1 deletion src/config/ecosystem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const checkEcosystem = async (): Promise<ICheckEcosystem> => {
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,
Expand Down

0 comments on commit c1ce82b

Please sign in to comment.