diff --git a/server/views/pages/sentence.njk b/server/views/pages/sentence.njk index 2eb1cd63..604c9aa5 100644 --- a/server/views/pages/sentence.njk +++ b/server/views/pages/sentence.njk @@ -147,8 +147,6 @@ {% endif %} {% endset %} {% set notes = notes.concat(note) %} - {% else %} - {% set notes = 'No notes' %} {% endfor %} {% set licenceHtml %} {{ govukSummaryList({ @@ -168,7 +166,7 @@ { key: { text: 'Notes' }, value: { html: notes } - } if notes != 'No notes' + } ] }) }} {% endset %} diff --git a/wiremock/mappings/X000001-sentence.json b/wiremock/mappings/X000001-sentence.json index 81191e68..ff11fa8d 100644 --- a/wiremock/mappings/X000001-sentence.json +++ b/wiremock/mappings/X000001-sentence.json @@ -372,6 +372,22 @@ "mainDescription": "Licence - Prohibited Activity", "imposedReleasedDate": "2023-09-26", "licenceConditionNotes": [] + }, + { + "id": 101, + "mainDescription": "Residence at a specific place", + "subTypeDescription": "Bespoke Condition (See Notes)", + "imposedReleasedDate": "2024-10-03", + "actualStartDate": "2023-11-15", + "licenceConditionNotes": [ + { + "id": 1, + "createdBy": "Gary Jones", + "createdByDate": "2021-10-04", + "note": "Need to be home by 10pm.", + "hasNoteBeenTruncated": false + } + ] } ] }