Closed emanuelen5 closed 1 month ago
The changes focus on enhancing error handling and rendering logic in the licenses.tsx
, member.tsx
, and payment_common.tsx
files. A key addition is the import of jsx_to_string
from "preact-render-to-string" to improve error message display. The updates also introduce conditional checks for missing configurations, such as the Stripe key, to provide clearer feedback to users.
File | Change Summary |
---|---|
public/ts/licenses.tsx |
Added import for jsx_to_string and enhanced error handling to render additional information on member info load failure. |
public/ts/member.tsx |
Updated error message display to use JSON.stringify() for better readability. |
public/ts/payment_common.tsx |
Imported jsx_to_string and added a conditional check for window.stripeKey to alert if the Stripe key is missing. |
In code's embrace, errors fade away,
Preact's string renders save the day!
Members' info clear and bright,
Stripe's key in check, all feels right.
In every byte, a rabbit's cheer,
For cleaner code, we hold dear!
🌟🐰✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Now, if you don't have Stripe configured, you will get the following popups when you try to load
http://localhost:8011
, instead of just seeing a blank page:Summary by CodeRabbit
window.stripeKey
before initializing Stripe and alerting if the key is missing.