From 63687614e84fc28b8c600de3d62bacdeef41ba66 Mon Sep 17 00:00:00 2001 From: Yashasvi Bajpai <33063622+yashasvibajpai@users.noreply.github.com> Date: Mon, 2 Sep 2024 16:02:49 +0530 Subject: [PATCH] chore: fix checks --- src/v1/sources/shopify/transform.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/v1/sources/shopify/transform.js b/src/v1/sources/shopify/transform.js index b0785bacc4..e645d1b692 100644 --- a/src/v1/sources/shopify/transform.js +++ b/src/v1/sources/shopify/transform.js @@ -429,9 +429,9 @@ const processIdentifierEvent = async (event, metricMetadata) => { function processPixelEvent(inputEvent) { const { name, query_parameters, clientId, data } = inputEvent; - const { checkout } = data; - const { order } = checkout; - const { customer } = order; + const { checkout } = data ?? {}; + const { order } = checkout ?? {}; + const { customer } = order ?? {}; let message; switch (name) { case PIXEL_EVENT_TOPICS.PAGE_VIEWED: