Skip to content

Commit

Permalink
feat: setting empty string as default if app event params are not pre…
Browse files Browse the repository at this point in the history
…sent (#2742)

feat: setting empty string as default if app event params are not sent in event
  • Loading branch information
sandeepdsvs authored Oct 18, 2023
1 parent 7461199 commit 17cd1f8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/v0/destinations/facebook_conversions/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ const fetchAppData = (message) => {
const appData = constructPayload(
message,
MAPPING_CONFIG[CONFIG_CATEGORIES.APPDATA.name],
'fb_pixel',
DESTINATION.toLowerCase(),
);

if (appData) {
Expand All @@ -195,6 +195,10 @@ const fetchAppData = (message) => {
appData.extinfo[0] = sourceSDK;
}

appData.extinfo = ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''].map(
(val, ind) => (appData.extinfo[ind] ? appData.extinfo[ind] : val),
);

return appData;
};

Expand Down

0 comments on commit 17cd1f8

Please sign in to comment.