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

This commit is contained in:
Somay Chauhan
2024-01-27 12:03:23 +00:00
committed by GitHub
parent fa45a85088
commit 20517be280
@@ -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;
}