enzostvs HF Staff commited on
Commit
d15b3be
·
1 Parent(s): b87eb8b

infinite loading

Browse files
components/main/hooks/useCollections.ts CHANGED
@@ -55,7 +55,7 @@ export const useCollections = (category: string) => {
55
 
56
  const response = await fetch(`/api/collections?${queryParams.toString()}`, {
57
  headers: {
58
- 'x-staff-flag-id': user?.sub
59
  },
60
  method: "GET",
61
  })
 
55
 
56
  const response = await fetch(`/api/collections?${queryParams.toString()}`, {
57
  headers: {
58
+ ...(user?.sub ? { 'Authorization': token } : {})
59
  },
60
  method: "GET",
61
  })