@flopay/react 1.2.4 → 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.cjs CHANGED
@@ -544,9 +544,9 @@ function buildSyntheticSession(params, checkoutModeOverride) {
544
544
  cancelUrl: params.cancelUrl,
545
545
  checkoutMode: checkoutModeOverride ?? params.checkoutMode ?? "full",
546
546
  products: inputProducts.map((p, idx) => ({
547
- uuid: `synthetic-${p.type}-${idx}`,
547
+ uuid: `synthetic-${p.type ?? "item"}-${idx}`,
548
548
  checkoutSessionId: "",
549
- type: p.type,
549
+ type: p.type ?? "item",
550
550
  code: p.code,
551
551
  name: p.name ?? null,
552
552
  quantity: p.quantity ?? 1,