Skip to content

Commit

Permalink
reconstruct buyer
Browse files Browse the repository at this point in the history
  • Loading branch information
dustinfirman committed May 6, 2024
1 parent 4460dc6 commit 02a88b7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion examples/b2b/app/routes/products.$handle.tsx
Expand Up @@ -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,
},
}
: {};

Expand Down

0 comments on commit 02a88b7

Please sign in to comment.