optimized-react-component-library-xyz123 0.26.4 → 0.26.5

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/dist/index.js CHANGED
@@ -1279,7 +1279,7 @@ function createApiDataObject(data, specialMappedQuestions, translatedAnswers) {
1279
1279
  let translatedAnswer = question.answer;
1280
1280
  if (question.answer && typeof question.answer === "string" && Array.isArray(question.options) && question.mappingId && specialMappedQuestions.has(question.mappingId)) {
1281
1281
  const answerNormalized = normalize(question.answer);
1282
- const matchingIds = question.options.filter((option) => answerNormalized.includes(normalize(option.label))).map((option) => `^${option.id}^`);
1282
+ const matchingIds = question.options.filter((option) => answerNormalized.includes(normalize(option.id))).map((option) => `^${option.id}^`);
1283
1283
  if (matchingIds.length > 0) {
1284
1284
  translatedAnswer = matchingIds.join(",");
1285
1285
  }