Skip to content

Commit

Permalink
fix summary
Browse files Browse the repository at this point in the history
  • Loading branch information
rmccar committed May 5, 2020
1 parent 8bd76c1 commit 78cb4e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _prototypes/end-to-end/individual-details-summary.html
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ <h2 class="question__title u-fs-xl js-heading">
$container.append(createListItem(individualDetails[person].stayInUk.val, individualDetails[person].stayInUk.question, individualDetails[person].stayInUk.url));
}

if (individualDetails[person].nationalIdentity) {
if (individualDetails[person].nationalIdentity && individualDetails[person].nationalIdentity.collection.length !== 0) {
$container.append(createListItem(individualDetails[person].nationalIdentity.collection, individualDetails[person].nationalIdentity.question, individualDetails[person].nationalIdentity.url));
}

Expand Down Expand Up @@ -198,7 +198,7 @@ <h2 class="question__title u-fs-xl js-heading">
$container.append(createListItem(individualDetails[person].language.english, individualDetails[person].language.questionEnglishLevel, individualDetails[person].language.urlEnglishLevel));
}

if (individualDetails[person].passport) {
if (individualDetails[person].passport && individualDetails[person].passport.countries.length !== 0) {
$container.append(createListItem(individualDetails[person].passport.countries, individualDetails[person].passport.question, individualDetails[person].passport.url));
}

Expand Down

0 comments on commit 78cb4e4

Please sign in to comment.