Yohei-Shiina пре 4 година
родитељ
комит
8023fd3040
1 измењених фајлова са 1 додато и 1 уклоњено
  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> => {
   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);
 };