Adds booking data to SDK success event (#6737)

pull/6717/head
Omar López 2023-01-26 22:32:33 -07:00 committed by GitHub
parent 16adf86c8c
commit a90419c40b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -255,6 +255,7 @@ export default function Success(props: SuccessProps) {
if (!sdkActionManager) return;
// TODO: We should probably make it consistent with Webhook payload. Some data is not available here, as and when requirement comes we can add
sdkActionManager.fire("bookingSuccessful", {
booking: bookingInfo,
eventType,
date: date.toString(),
duration: calculatedDuration,