Skip to content

Commit

Permalink
change
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoacierno committed Oct 29, 2024
1 parent d58c5df commit e38d957
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion frontend/src/pages/tickets/business.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { addApolloState, getApolloClient } from "~/apollo/client";
import { Tickets } from "~/components/tickets-page/tickets";
import { TicketsPageWrapper } from "~/components/tickets-page/wrapper";
import { prefetchSharedQueries } from "~/helpers/prefetch";
import { CheckoutCategory, queryTickets } from "~/types";
import { CheckoutCategory, queryCurrentUser, queryTickets } from "~/types";

export const BusinessTicketsPage = ({ cartCookie }) => {
return (
Expand Down Expand Up @@ -61,6 +61,12 @@ export const getServerSideProps: GetServerSideProps = async ({
}),
]);

try {
await queryCurrentUser(client, {
conference: process.env.conferenceCode,
});
} catch (e) {}

const cartCookie = req.cookies["tickets-cart-v6"];
return addApolloState(
client,
Expand Down

0 comments on commit e38d957

Please sign in to comment.