Skip to content

Commit

Permalink
chore: resolve sonar
Browse files Browse the repository at this point in the history
  • Loading branch information
anantjain45823 committed Nov 1, 2023
1 parent 7c17901 commit ce4d07b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/v0/destinations/am/transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit ce4d07b

Please sign in to comment.