diff --git a/lib/commerce/cart/use-cart.tsx b/lib/commerce/cart/use-cart.tsx index b65228553..bd1af710c 100644 --- a/lib/commerce/cart/use-cart.tsx +++ b/lib/commerce/cart/use-cart.tsx @@ -18,7 +18,7 @@ export default function useCart( fetcherFn: HookFetcher, swrOptions?: ConfigInterface ) { - const { cartCookie = '' } = useCommerce() | {} + const { cartCookie } = useCommerce() const fetcher: typeof fetcherFn = (options, input, fetch) => { input.cartId = Cookies.get(cartCookie) return fetcherFn(options, input, fetch) diff --git a/pages/_app.tsx b/pages/_app.tsx index 3d8dfc37c..699cc901c 100644 --- a/pages/_app.tsx +++ b/pages/_app.tsx @@ -14,15 +14,13 @@ export default function MyApp({ Component, pageProps }: AppProps) { const Layout = (Component as any).Layout || Noop return ( - <> + - - - - - - - - + + + + + + ) }