chec / commercejs-nextjs-demo-store

Commerce demo store built for the Jamstack. Built with Commerce.js, Next.js, and can be one-click deployed to Netlify. Includes product catalog, customer login, categories, variants, cart, checkout, payments (Stripe) order confirmation, and printable receipts.
https://commercejs-demo-store.netlify.app/
BSD 3-Clause "New" or "Revised" License
1.07k stars 206 forks source link

Update Commerce.js customer API calls to match Commerce.js v2.6.1 release #207

Closed robbieaverill closed 3 years ago

robbieaverill commented 3 years ago

v2.6.1 removes the nested .data key in customer SDK responses. I've also cleared the email address from the login form when you submit it, and removed {alert} which appears to do nothing except throw a React error because it's not renderable.