Skip to content

Commit

Permalink
fix: update in home instructors showings
Browse files Browse the repository at this point in the history
  • Loading branch information
nahyan0077 committed Jul 24, 2024
1 parent 21eb4ca commit 42b5ac5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/home/MentorSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,14 @@ const MentorsSection: React.FC = () => {
try {
setLoading(true);
const mentors = await dispatch(
getAllInstructorsAction({ page: 1, limit: 4 })
getAllInstructorsAction({ page: 1, limit: 20 })
).unwrap();
if (mentors.success) {
const instructor = mentors.data;
const verifiedInstructors = instructor.filter(
(instructor: any) => instructor.isVerified
);
setInstructors(verifiedInstructors);
setInstructors(verifiedInstructors.slice(0,4));
setLoading(false);
}
} catch (err) {
Expand Down

0 comments on commit 42b5ac5

Please sign in to comment.