Răsfoiți Sursa

81110 change arg name

Yohei-Shiina 4 ani în urmă
părinte
comite
354886f1ab
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      packages/app/src/stores/user.tsx

+ 2 - 2
packages/app/src/stores/user.tsx

@@ -2,8 +2,8 @@ import useSWR, { SWRResponse } from 'swr';
 import { IUser } from '../interfaces/user';
 import { apiGet } from '../client/util/apiv1-client';
 
-const userFetcher = (endpoint:string, ids:string) => {
-  return apiGet(endpoint, { user_ids: ids }).then((response:any) => response.users);
+const userFetcher = (endpoint:string, userIds:string) => {
+  return apiGet(endpoint, { user_ids: userIds }).then((response:any) => response.users);
 };
 
 export const useSWRxLikerList = (likerIds?: string[]): SWRResponse<IUser[], Error> => {