diff --git a/web/hooks/use-contracts.ts b/web/hooks/use-contracts.ts index 7952deba..baba0270 100644 --- a/web/hooks/use-contracts.ts +++ b/web/hooks/use-contracts.ts @@ -32,7 +32,7 @@ export const useContracts = () => { export const useTrendingContracts = (maxContracts: number) => { const { data } = useQuery(['trending-contracts', maxContracts], () => trendingIndex.search('', { - facetFilters: ['isResolved:false'], + facetFilters: ['isResolved:false', 'visibility:public'], hitsPerPage: maxContracts, }) ) @@ -43,7 +43,7 @@ export const useTrendingContracts = (maxContracts: number) => { export const useNewContracts = (maxContracts: number) => { const { data } = useQuery(['newest-contracts', maxContracts], () => newIndex.search('', { - facetFilters: ['isResolved:false'], + facetFilters: ['isResolved:false', 'visibility:public'], hitsPerPage: maxContracts, }) ) @@ -57,7 +57,11 @@ export const useContractsByDailyScoreNotBetOn = ( ) => { const { data } = useQuery(['daily-score', userId, maxContracts], () => dailyScoreIndex.search('', { - facetFilters: ['isResolved:false', `uniqueBettors:-${userId}`], + facetFilters: [ + 'isResolved:false', + 'visibility:public', + `uniqueBettors:-${userId}`, + ], hitsPerPage: maxContracts, }) )