Skip to content

Scheduling infrastructure for absolutely everyone.

fix: app crash on clicking on an event (#13435)

Somay Chauhan20517be280c3
diff --git a/packages/app-store/_utils/getEventTypeAppData.ts b/packages/app-store/_utils/getEventTypeAppData.ts
index e556e1ac6cf..fed3e225d35 100644
--- a/packages/app-store/_utils/getEventTypeAppData.ts
+++ b/packages/app-store/_utils/getEventTypeAppData.ts
@@ -19,10 +19,10 @@ export const getEventTypeAppData = <T extends EventTypeAppsList>(
? {
...appMetadata,
// We should favor eventType's price and currency over appMetadata's price and currency
- price: eventType.price || appMetadata.price,
- currency: eventType.currency || appMetadata.currency,
+ price: eventType.price || appMetadata.price || null,
+ currency: eventType.currency || appMetadata.currency || null,
// trackingId is legacy way to store value for TRACKING_ID. So, we need to support both.
- TRACKING_ID: appMetadata.TRACKING_ID || appMetadata.trackingId,
+ TRACKING_ID: appMetadata.TRACKING_ID || appMetadata.trackingId || null,
}
: null;
}