enzostvs HF staff commited on
Commit
0a715e6
1 Parent(s): a917d34

infinite refetch pass userId

Browse files
components/main/hooks/useCollections.ts CHANGED
@@ -48,7 +48,7 @@ export const useCollections = (category: string) => {
48
  const response = await fetch("/api/collections", {
49
  method: "POST",
50
  body: JSON.stringify({
51
- ids: category === 'my-own' ? myGenerationsId : undefined,
52
  page: data?.pagination?.page,
53
  }),
54
  })
 
48
  const response = await fetch("/api/collections", {
49
  method: "POST",
50
  body: JSON.stringify({
51
+ userId: category === 'my-own' ? user?.sub : undefined,
52
  page: data?.pagination?.page,
53
  }),
54
  })