From 20517be280c3c7f90c2e52a554c809137bb6b9f5 Mon Sep 17 00:00:00 2001 From: Somay Chauhan Date: Sat, 27 Jan 2024 17:33:23 +0530 Subject: [PATCH] fix: app crash on clicking on an event (#13435) --- packages/app-store/_utils/getEventTypeAppData.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/app-store/_utils/getEventTypeAppData.ts b/packages/app-store/_utils/getEventTypeAppData.ts index e556e1ac6c..fed3e225d3 100644 --- a/packages/app-store/_utils/getEventTypeAppData.ts +++ b/packages/app-store/_utils/getEventTypeAppData.ts @@ -19,10 +19,10 @@ export const getEventTypeAppData = ( ? { ...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; }