File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ export const ListingsSection = ({
6363 order : activeOrder ,
6464 region,
6565 sponsor,
66+ authenticated,
6667 } ) ;
6768
6869 const viewAllLink = ( ) => {
@@ -165,7 +166,7 @@ export const ListingsSection = ({
165166 ref = { scrollContainerRef }
166167 className = "hide-scrollbar flex gap-1.5 overflow-x-auto px-2 py-1"
167168 >
168- { potentialSession && (
169+ { ( potentialSession || authenticated ) && (
169170 < CategoryPill
170171 key = "foryou"
171172 phEvent = "foryou_navpill"
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ interface ListingsParams {
3030 order ?: OrderDirection ;
3131 region ?: string ;
3232 sponsor ?: string ;
33+ authenticated ?: boolean ;
3334}
3435
3536const fetchListings = async ( {
@@ -67,6 +68,7 @@ export function useListings({
6768 order,
6869 region,
6970 sponsor,
71+ authenticated,
7072} : ListingsParams ) {
7173 return useQuery ( {
7274 queryKey : [
@@ -79,6 +81,7 @@ export function useListings({
7981 order ,
8082 region ,
8183 sponsor ,
84+ authenticated ,
8285 ] ,
8386 queryFn : ( ) =>
8487 fetchListings ( {
You can’t perform that action at this time.
0 commit comments