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