stripe-samples / firebase-subscription-payments

Example web client for the `firestore-stripe-subscriptions` Firebase Extension using Stripe Checkout and the Stripe Customer Portal.
https://stripe-subs-ext.web.app/
MIT License
289 stars 78 forks source link

Uncaught (in promise) TypeError: Cannot read property 'toUpperCase' of null at app.js:93 #11

Closed qeema closed 3 years ago

qeema commented 3 years ago

Bug report

Describe the bug

To Reproduce

  1. Create a product that no have description(optional) at Stripe.
  2. Back to client index.html and proceed to subscription.

Expected behavior

thorsten-stripe commented 3 years ago

@qeema thanks for reporting this. You're spot on, description is optional and optional chaining would be a good way to prevent this error. Would you be up for opening a PR to fix this? No worries if not, then I can take.

qeema commented 3 years ago

Thank you for replying my message. I create Pull Request for this issue. Please check it. https://github.com/stripe-samples/firebase-subscription-payments/pull/12