Skip to content

Commit 289b1aa

Browse files
authored
feat(mentor-list): returns active only (#879)
1 parent 6935df9 commit 289b1aa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/api/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ let mentorsPromise: Promise<Mentor[]>;
160160

161161
export async function getMentors() {
162162
if (!mentorsPromise) {
163-
mentorsPromise = makeApiCall<Mentor[]>(`${paths.MENTORS}?limit=1300`).then(
163+
mentorsPromise = makeApiCall<Mentor[]>(`${paths.MENTORS}?limit=1300&available=true`).then(
164164
(response) => {
165165
if (response?.success) {
166166
const [available, unavailable] = partition(

0 commit comments

Comments
 (0)