diff --git a/package.json b/package.json
index 94890aa..72b238a 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "sonor",
- "version": "0.5.28",
+ "version": "0.5.29",
"private": true,
"dependencies": {
"@testing-library/jest-dom": "^4.2.4",
diff --git a/src/components/Review/SurveyUnitLine.jsx b/src/components/Review/SurveyUnitLine.jsx
index 91b4006..9287756 100644
--- a/src/components/Review/SurveyUnitLine.jsx
+++ b/src/components/Review/SurveyUnitLine.jsx
@@ -28,7 +28,7 @@ function SurveyUnitLine({
{campaignLabel} |
{id} |
- {contactOutcome && D[contactOutcome]}
+ {contactOutcome?.type && D[contactOutcome.type]}
|
{interviewer} |
diff --git a/src/tests/mocks/reviewDataAllSurveys.js b/src/tests/mocks/reviewDataAllSurveys.js
index fe2a8c2..19fb4e6 100644
--- a/src/tests/mocks/reviewDataAllSurveys.js
+++ b/src/tests/mocks/reviewDataAllSurveys.js
@@ -4,56 +4,56 @@ const val = [
"interviewer": "Dupont ChloƩ",
"idep": "INTW5",
"id": "1032",
- "contactOutcome": "INA"
+ "contactOutcome": {type: "INA" }
},
{
"campaignLabel": "Survey on the Simpsons tv show 2020",
"interviewer": "Boulanger Jacques",
"idep": "INTW6",
"id": "4819",
- "contactOutcome": "IMP"
+ "contactOutcome": {type: "IMP" }
},
{
"campaignLabel": "Survey on the Simpsons tv show 2020",
"interviewer": "Boulanger Jacques",
"idep": "INTW6",
"id": "4818",
- "contactOutcome": "REF"
+ "contactOutcome": {type:"REF" }
},
{
"campaignLabel": "Survey on the Simpsons tv show 2020",
"interviewer": "Boulanger Jacques",
"idep": "INTW6",
"id": "4817",
- "contactOutcome": "ALA"
+ "contactOutcome": {type:"ALA" }
},
{
"campaignLabel": "Survey on the Simpsons tv show 2020",
"interviewer": "Boulanger Jacques",
"idep": "INTW6",
"id": "4816",
- "contactOutcome": "UCD"
+ "contactOutcome":{type: "UCD" }
},
{
"campaignLabel": "Survey on the Simpsons tv show 2020",
"interviewer": "Boulanger Jacques",
"idep": "INTW6",
"id": "4813",
- "contactOutcome": "UTR"
+ "contactOutcome": {type:"UTR" }
},
{
"campaignLabel": "Survey on the Simpsons tv show 2020",
"interviewer": "Boulanger Jacques",
"idep": "INTW6",
"id": "4812",
- "contactOutcome": "ACP"
+ "contactOutcome":{type: "ACP" }
},
{
"campaignLabel": "Survey on the Simpsons tv show 2020",
"interviewer": "Boulanger Jacques",
"idep": "INTW6",
"id": "4811",
- "contactOutcome": "DCD"
+ "contactOutcome": {type:"DCD" }
},
{
"campaignLabel": "Survey on the Simpsons tv show 2020",
|