diff --git a/src/v0/destinations/am/utils.js b/src/v0/destinations/am/utils.js index 84cf1cb6757..71fe0ab4590 100644 --- a/src/v0/destinations/am/utils.js +++ b/src/v0/destinations/am/utils.js @@ -102,7 +102,7 @@ const getEventId = (payload, sourceKey) => { const getUnsetObj = (message) => { const fieldsToUnset = get(message, 'integrations.Amplitude.fieldsToUnset'); let unsetObject; - if (fieldsToUnset && Array.isArray(fieldsToUnset)) { + if (Array.isArray(fieldsToUnset)) { unsetObject = Object.fromEntries(fieldsToUnset.map((field) => [field, '-'])); }