File tree Expand file tree Collapse file tree
frontend/src/pages/tickets Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ export const getServerSideProps: GetServerSideProps = async ({
6767 console . debug ( "User not logged in" ) ;
6868 }
6969
70- const cartCookie = req . cookies [ "tickets-cart-v6" ] ;
70+ const cartCookie = req . cookies [ "tickets-cart-v6" ] ?? null ;
7171 return addApolloState (
7272 client ,
7373 {
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ export const getServerSideProps: GetServerSideProps = async ({
6262 } ;
6363 }
6464
65- const cartCookie = req . cookies [ "tickets-cart-v6" ] ;
65+ const cartCookie = req . cookies [ "tickets-cart-v6" ] ?? null ;
6666 return addApolloState (
6767 client ,
6868 {
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ export const getServerSideProps: GetServerSideProps = async ({
6767 console . debug ( "User not logged in" ) ;
6868 }
6969
70- const cartCookie = req . cookies [ "tickets-cart-v6" ] ;
70+ const cartCookie = req . cookies [ "tickets-cart-v6" ] ?? null ;
7171 return addApolloState (
7272 client ,
7373 {
You can’t perform that action at this time.
0 commit comments