diff --git a/src/v0/destinations/am/transform.js b/src/v0/destinations/am/transform.js index b18a0be0a1..c14e17d3ab 100644 --- a/src/v0/destinations/am/transform.js +++ b/src/v0/destinations/am/transform.js @@ -194,8 +194,9 @@ const handleTraits = (messageTrait, destination) => { const getScreenevTypeAndUpdatedProperties = (message, CATEGORY_KEY) => { const name = message.name || message.event || get(message, CATEGORY_KEY); + const updatedName = name ? `${name} ` : ''; return { - evType: `Viewed ${name ? `${name} ` : ''}Screen`, + evType: `Viewed ${updatedName}Screen`, updatedProperties: { ...message.properties, name,