We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3d281c4 commit e498604Copy full SHA for e498604
1 file changed
src/api/user.ts
@@ -21,8 +21,11 @@ export const fetchUsers = async ({
21
} else if (cursorId) {
22
params.append("cursor", cursorId);
23
}
24
-
25
- const url = gender? `admin/users/${gender}?${params.toString()}` : `admin/users?${params.toString()}`;
+ if(gender)
+ {
26
+ params.append("gender", gender);
27
+ }
28
+ const url = gender? `admin/users?${params.toString()}` : `admin/users?${params.toString()}`;
29
30
const response = await axios.get<UserResponse>(url);
31
0 commit comments