create-cartbase 0.1.21 → 0.1.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-cartbase",
3
- "version": "0.1.21",
3
+ "version": "0.1.22",
4
4
  "description": "Scaffold a Cartbase storefront: npm create cartbase my-store",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -48,7 +48,7 @@ async function Checkout() {
48
48
  // Nothing to check out, so the page SAYS so rather than bouncing the
49
49
  // shopper home without a word (2026-09-18). A checkout shell carries no
50
50
  // header and no drawer, so this notice is also the only way back.
51
- if (!cart || (cart.items ?? []).length === 0) return <CheckoutEmpty />
51
+ if (!client || !cart || (cart.items ?? []).length === 0) return <CheckoutEmpty />
52
52
 
53
53
  const [shippingOptions, paymentProviders] = await Promise.all([
54
54
  listShippingOptions(client, { cart_id: cart.id }),