@resira/ui 0.4.10 → 0.4.11

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
@@ -3359,13 +3359,9 @@ function ResiraBookingWidget() {
3359
3359
  const result = await createPayment(paymentPayload);
3360
3360
  if (!result) return;
3361
3361
  if (result.amountNow === 0) {
3362
- if (result.reservationId) {
3363
- const confirmed = await confirmPayment(result.paymentIntentId, result.reservationId);
3364
- if (!confirmed) return;
3365
- }
3366
3362
  setStep("confirmation");
3367
3363
  }
3368
- }, [createPayment, paymentPayload, confirmPayment]);
3364
+ }, [createPayment, paymentPayload]);
3369
3365
  const handlePaymentError = react.useCallback((msg) => {
3370
3366
  onError?.("payment_error", msg);
3371
3367
  }, [onError]);
@@ -3393,10 +3389,6 @@ function ResiraBookingWidget() {
3393
3389
  const result = await createPayment(paymentPayload);
3394
3390
  if (!result) return;
3395
3391
  if (result.amountNow === 0) {
3396
- if (result.reservationId) {
3397
- const confirmed = await confirmPayment(result.paymentIntentId, result.reservationId);
3398
- if (!confirmed) return;
3399
- }
3400
3392
  setStep("confirmation");
3401
3393
  } else {
3402
3394
  setStep("payment");