react-native-my-survey-sdk 2.2.19 → 2.2.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-my-survey-sdk",
3
- "version": "2.2.19",
3
+ "version": "2.2.20",
4
4
  "description": "Xebo survey collection SDK for React Native",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
@@ -352,10 +352,10 @@ export async function submitResponse(
352
352
  // Build custom_variables — the platform maps these to Name, Email, Mobile, Unique Id fields
353
353
  const customVariables: Record<string, string> = {};
354
354
  if (meta?.userData) {
355
- if (meta.userData.name) customVariables.name = meta.userData.name;
355
+ if (meta.userData.name) customVariables.fName = meta.userData.name;
356
356
  if (meta.userData.email) customVariables.email = meta.userData.email;
357
357
  if (meta.userData.phone) customVariables.mobile = meta.userData.phone;
358
- if (meta.userData.uniqueId) customVariables.uid = meta.userData.uniqueId;
358
+ if (meta.userData.uniqueId) customVariables.unique_id = meta.userData.uniqueId;
359
359
  if (meta.userData.country) customVariables.country = meta.userData.country;
360
360
  if (meta.userData.city) customVariables.city = meta.userData.city;
361
361
  }