fix: requires confirmation for event type atom (#18729)
* redirect on success from event types * fixup
This commit is contained in:
@@ -304,6 +304,10 @@ export const BookerPlatformWrapper = (
|
||||
onSuccess: (data) => {
|
||||
schedule.refetch();
|
||||
props.onCreateBookingSuccess?.(data);
|
||||
|
||||
if (!!event.data?.successRedirectUrl) {
|
||||
window.location.href = event.data.successRedirectUrl;
|
||||
}
|
||||
},
|
||||
onError: props.onCreateBookingError,
|
||||
});
|
||||
@@ -317,6 +321,10 @@ export const BookerPlatformWrapper = (
|
||||
onSuccess: (data) => {
|
||||
schedule.refetch();
|
||||
props.onCreateRecurringBookingSuccess?.(data);
|
||||
|
||||
if (!!event.data?.successRedirectUrl) {
|
||||
window.location.href = event.data.successRedirectUrl;
|
||||
}
|
||||
},
|
||||
onError: props.onCreateRecurringBookingError,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user