diff --git a/server/model/adjustmentFormFactory.ts b/server/model/adjustmentFormFactory.ts index 24273669..3fe0ce71 100644 --- a/server/model/adjustmentFormFactory.ts +++ b/server/model/adjustmentFormFactory.ts @@ -25,7 +25,7 @@ export default class AdjustmentsFormFactory { 'to-month': (dayjs(adjustment.toDate).get('month') + 1).toString(), 'to-year': dayjs(adjustment.toDate).get('year').toString(), days: adjustment.days.toString(), - sentence: adjustment.sentenceSequence.toString(), + sentence: adjustment.sentenceSequence?.toString(), }) } diff --git a/server/views/pages/adjustments/view.njk b/server/views/pages/adjustments/view.njk index 33de5990..26cbd55e 100644 --- a/server/views/pages/adjustments/view.njk +++ b/server/views/pages/adjustments/view.njk @@ -9,7 +9,7 @@

Adjust release dates - {{model.adjustmentType.shortText}} details + {{model.adjustmentType.text}} details