diff --git a/src/app/cart/page.tsx b/src/app/cart/page.tsx index 9669759..a18b321 100644 --- a/src/app/cart/page.tsx +++ b/src/app/cart/page.tsx @@ -17,6 +17,11 @@ export default function CartPage() { useEffect(() => setMounted(true), []); const handleCheckout = () => { + // Set flag so LogoutOnUnload doesn't clear cart during navigation to checkout + if (typeof window !== 'undefined') { + sessionStorage.setItem('isCheckingOut', 'true'); + console.log('💳 Cart checkout button clicked - set isCheckingOut flag'); + } window.location.href = '/checkout'; };