diff --git a/src/containers/admin-dashBoard/CohortTraineeModal.tsx b/src/containers/admin-dashBoard/CohortTraineeModal.tsx index a77d06ae0..c7c072ecd 100644 --- a/src/containers/admin-dashBoard/CohortTraineeModal.tsx +++ b/src/containers/admin-dashBoard/CohortTraineeModal.tsx @@ -46,7 +46,7 @@ export default function CohortTraineeModal({ if (traineeData && traineeData.length > 0) { traineeData?.map((data: any, index: number): any => { datum[index] = {}; - datum[index].name = data.profile.name; + datum[index].name = data.profile?.name; datum[index].email = data.email; datum[index].rating = '2'; datum[index].team = data.team.name; diff --git a/src/containers/admin-dashBoard/UpdateCohortModal.tsx b/src/containers/admin-dashBoard/UpdateCohortModal.tsx index e520344ac..4e359a5c9 100644 --- a/src/containers/admin-dashBoard/UpdateCohortModal.tsx +++ b/src/containers/admin-dashBoard/UpdateCohortModal.tsx @@ -12,7 +12,7 @@ export const UpdateCohort = gql` mutation UpdateCohort( $updateCohortId: ID! $orgToken: String - $coordinatorEmail: String! + $coordinatorEmail: String $programName: String! $name: String $phaseName: String