diff --git a/examples/b2b/app/routes/products.$handle.tsx b/examples/b2b/app/routes/products.$handle.tsx index d9e668ffef..9ff7855852 100644 --- a/examples/b2b/app/routes/products.$handle.tsx +++ b/examples/b2b/app/routes/products.$handle.tsx @@ -60,7 +60,10 @@ export async function loader({params, request, context}: LoaderFunctionArgs) { const buyerVariables = buyer?.companyLocationId && buyer?.customerAccessToken ? { - buyer, + buyer: { + companyLocationId: buyer.companyLocationId, + customerAccessToken: buyer.customerAccessToken, + }, } : {};