Checkout goes blank when you clear the promo code and tap Apply
Steps
- Open /checkout with the Pro plan in the cart.
- Type LAUNCH20 in Promo code, then delete it.
- Tap Apply.
What happens
The page goes blank. Console: TypeError: null is not an object (evaluating 'promo.trim').
Expected
The promo field clears and the order total returns to the full price.
Why it matters
Anyone who changes their mind about a code can't pay. Reloading empties the cart.
Suggested fix
Treat an empty field as no code: (promo ?? "").trim(). Disable Apply while the field is empty.
- Reproduced:
- 5 of 5 attempts on iPhone 17. Not reproduced on desktop Safari or Chrome.
- Evidence:
- Screen recording (0:18), console log