diff --git a/src/v0/destinations/am/transform.js b/src/v0/destinations/am/transform.js index 83844ec0ba..2f968574ce 100644 --- a/src/v0/destinations/am/transform.js +++ b/src/v0/destinations/am/transform.js @@ -621,7 +621,7 @@ const processSingleMessage = (message, destination) => { ) .trim(); evType = - userProvidedPageEventString.trim() === '' + userProvidedPageEventString?.trim() === '' ? name : userProvidedPageEventString ?.trim()