@flopay/react 1.2.5 → 1.2.6

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/dist/index.mjs CHANGED
@@ -516,9 +516,9 @@ function buildSyntheticSession(params, checkoutModeOverride) {
516
516
  cancelUrl: params.cancelUrl,
517
517
  checkoutMode: checkoutModeOverride ?? params.checkoutMode ?? "full",
518
518
  products: inputProducts.map((p, idx) => ({
519
- uuid: `synthetic-${p.type}-${idx}`,
519
+ uuid: `synthetic-${p.type ?? "item"}-${idx}`,
520
520
  checkoutSessionId: "",
521
- type: p.type,
521
+ type: p.type ?? "item",
522
522
  code: p.code,
523
523
  name: p.name ?? null,
524
524
  quantity: p.quantity ?? 1,