Przeglądaj źródła

81110 remove code

Yohei-Shiina 4 lat temu
rodzic
commit
8023fd3040
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      packages/app/src/stores/user.tsx

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

@@ -8,5 +8,5 @@ const userFetcher = (endpoint:string, ids:string) => {
 
 
 export const useSWRxLikerList = (likerIds?: string[]): SWRResponse<IUser[], Error> => {
 export const useSWRxLikerList = (likerIds?: string[]): SWRResponse<IUser[], Error> => {
   const shouldFetch = likerIds != null && likerIds.length > 0;
   const shouldFetch = likerIds != null && likerIds.length > 0;
-  return useSWR<any>(shouldFetch ? ['/users.list', [...likerIds].join(',')] : null, userFetcher);
+  return useSWR(shouldFetch ? ['/users.list', [...likerIds].join(',')] : null, userFetcher);
 };
 };