Skip to content

Commit fca4d53

Browse files
committed
fix: listing list not updating right after login
1 parent 4b56c70 commit fca4d53

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

src/features/listings/components/ListingsSection.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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"

src/features/listings/hooks/useListings.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ interface ListingsParams {
3030
order?: OrderDirection;
3131
region?: string;
3232
sponsor?: string;
33+
authenticated?: boolean;
3334
}
3435

3536
const 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({

0 commit comments

Comments
 (0)