Skip to content

Commit 77e0187

Browse files
committed
app:ref: update session query options to initialize with currentSession prop
1 parent 213ad79 commit 77e0187

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/app/app/(dashboard)/app/account/components/sessions-management-card.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export function SessionsManagementCard(props: {
3030
currentSession?: Session | null;
3131
}) {
3232
const { data: currentSession, isPending: isPendingCurrentSession } = useQuery(
33-
sessionQueryOptionsClient(),
33+
sessionQueryOptionsClient({ init: props.currentSession }),
3434
);
3535
const { data: listSessions, isPending: isPendingListSessions } =
3636
useSuspenseQuery(listSessionsQueryOptionsClient());

0 commit comments

Comments
 (0)