Procházet zdrojové kódy

81110 change arg name

Yohei-Shiina před 4 roky
rodič
revize
354886f1ab
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  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> => {