fix: app crash on clicking on an event (#13435)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user