diff --git a/src/v0/destinations/freshsales/transform.js b/src/v0/destinations/freshsales/transform.js index cd7518a101..0007106d92 100644 --- a/src/v0/destinations/freshsales/transform.js +++ b/src/v0/destinations/freshsales/transform.js @@ -141,7 +141,7 @@ function eventMappingHandler(message, destination) { destination.ID, ); rudderEventsToFreshsalesEvents.forEach((mapping) => { - if (mapping.from.toLowerCase() === event.toLowerCase()) { + if (mapping.from.toLowerCase() === String(event).toLowerCase()) { mappedEvents.add(mapping.to); } });