Skip to content

Commit

Permalink
Merge pull request #61 from Aar-if/reassignAPIS
Browse files Browse the repository at this point in the history
Issue #0000 chore: resolved build issue
  • Loading branch information
itsvick authored Jul 30, 2024
2 parents b348422 + 693c9e4 commit 67e245a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/ManageUser.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ const manageUsers: React.FC<ManageUsersProps> = ({
const [openCentersModal, setOpenCentersModal] = React.useState(false);
const [selectedUser, setSelectedUser] = useState<User | null>(null);
const [selectedUserName, setSelectedUserName] = useState(null);
const [centers, setCenters] = useState<string[]>([]);
const [centers, setCenters] = useState<any>([]);
const [centerList, setCenterList] = useState<string[]>([]);
const handleChange = (event: React.SyntheticEvent, newValue: number) => {
setValue(newValue);
Expand Down Expand Up @@ -248,7 +248,7 @@ const manageUsers: React.FC<ManageUsersProps> = ({
const handleModalToggle = (user: any) => {
setSelectedUser(user);
setSelectedUserName(user.name);
setCenters(cohortsData?.[user.userId]?.map((cohort) => cohort.name) || []);
setCenters(cohortsData?.[user.userId]?.map((cohort) => cohort?.name) || []);
setOpen(true);
// logEvent({
// action: 'mark/modify-attendance-button-clicked-dashboard',
Expand Down

0 comments on commit 67e245a

Please sign in to comment.