Skip to content

Commit

Permalink
fix: bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JavanCheng committed Oct 9, 2023
1 parent c3a6a46 commit 80f2201
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/UserSearch/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ const UserSearch = (props: any) => {

const handleSearch = async (value: string) => {
setLoading(true);
const data = await searchUserInfo({ keyword: value, paginationOption: { limit: 10, page: 0 } });
// const data = await searchUserInfo({ keyword: value, limit: 10, page: 0 });
const data = await searchUserInfo({ keyword: value, limit: 10, page: 0 });
setLoading(false);
setUsers(data?.users);
if (data?.users?.length === 0) {
Expand Down

0 comments on commit 80f2201

Please sign in to comment.