diff --git a/src/app/checkout/page.tsx b/src/app/checkout/page.tsx index 51b43f4..b694ea0 100644 --- a/src/app/checkout/page.tsx +++ b/src/app/checkout/page.tsx @@ -2,7 +2,12 @@ import { getCurrentCustomer } from '@/lib/auth'; import CheckoutPageClient from './client'; export default async function CheckoutPage() { - const customer = await getCurrentCustomer(); + let customer = null; + try { + customer = await getCurrentCustomer(); + } catch (err) { + console.error('Error fetching customer for checkout:', err); + } return ; }