Skip to content

Commit

Permalink
Merge branch 'shiksha-2.0' of https://github.com/tekdi/shiksha-frontend
Browse files Browse the repository at this point in the history
… into shiksha-2.0
  • Loading branch information
upendraTekdi committed May 8, 2024
2 parents d26989f + 23fd514 commit 3bce621
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/pages/Dashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,10 @@ const Dashboard: React.FC<DashboardProps> = () => {
const parentCohortId = localStorage.getItem('parentCohortId');
const formattedDate: string = currentDate;
try {
if (userId && classId && parentCohortId) {
if (userId && classId && parentCohortId) {
let limit = "100";
let page = 0;
let filters = { cohortId: "2e09f3b6-e571-476e-a536-e1bf3a061e46" }; //Hard coded for testing replace it with classId
let filters = { cohortId: classId }; //Hard coded for testing replace it with classId
const response = await getMyCohortMemberList({
limit ,
page,
Expand Down Expand Up @@ -198,7 +198,9 @@ const Dashboard: React.FC<DashboardProps> = () => {
} catch (error) {
console.error('Error fetching cohort list:', error);
setLoading(false);
}
}finally {
setLoading(false);
}
};

if (classId.length) {
Expand Down

0 comments on commit 3bce621

Please sign in to comment.