Skip to content

Commit

Permalink
fix contactOutcome type (#97)
Browse files Browse the repository at this point in the history
* fix contactOutcome type

* Update package.json
  • Loading branch information
RenauxLeaInsee authored Jan 25, 2024
1 parent db7fd0e commit 0370d25
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sonor",
"version": "0.5.28",
"version": "0.5.29",
"private": true,
"dependencies": {
"@testing-library/jest-dom": "^4.2.4",
Expand Down
2 changes: 1 addition & 1 deletion src/components/Review/SurveyUnitLine.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function SurveyUnitLine({
<td className="ColCampaign">{campaignLabel}</td>
<td className="ColId">{id}</td>
<td className="ColContactOutcome">
{contactOutcome && D[contactOutcome]}
{contactOutcome?.type && D[contactOutcome.type]}
</td>
<td className="ColInterviewer">{interviewer}</td>
<td className="ColAction">
Expand Down
16 changes: 8 additions & 8 deletions src/tests/mocks/reviewDataAllSurveys.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 0370d25

Please sign in to comment.