diff --git a/libs/application/templates/driving-license/src/forms/draft/subSectionOtherCountry.ts b/libs/application/templates/driving-license/src/forms/draft/subSectionOtherCountry.ts index 00ba5a0bd979..109ab38b7120 100644 --- a/libs/application/templates/driving-license/src/forms/draft/subSectionOtherCountry.ts +++ b/libs/application/templates/driving-license/src/forms/draft/subSectionOtherCountry.ts @@ -50,9 +50,7 @@ export const subSectionOtherCountry = buildSubSection({ { value: NO, label: m.noDeprivedDrivingLicenseInOtherCountryTitle, - subLabel: - m.noDeprivedDrivingLicenseInOtherCountryDescription - .defaultMessage, + subLabel: m.noDeprivedDrivingLicenseInOtherCountryDescription, }, ], }), diff --git a/libs/application/templates/driving-license/src/forms/prerequisites/sectionApplicationFor.ts b/libs/application/templates/driving-license/src/forms/prerequisites/sectionApplicationFor.ts index a5ba5d014713..cf6ba528b6bb 100644 --- a/libs/application/templates/driving-license/src/forms/prerequisites/sectionApplicationFor.ts +++ b/libs/application/templates/driving-license/src/forms/prerequisites/sectionApplicationFor.ts @@ -74,15 +74,13 @@ export const sectionApplicationFor = ( let options = [ { label: m.applicationForTempLicenseTitle, - subLabel: - m.applicationForTempLicenseDescription.defaultMessage, + subLabel: m.applicationForTempLicenseDescription, value: B_TEMP, disabled: !!currentLicense, }, { label: m.applicationForFullLicenseTitle, - subLabel: - m.applicationForFullLicenseDescription.defaultMessage, + subLabel: m.applicationForFullLicenseDescription, value: B_FULL, disabled: !currentLicense, }, @@ -91,8 +89,7 @@ export const sectionApplicationFor = ( if (allow65Renewal) { options = options.concat({ label: m.applicationForRenewalLicenseTitle, - subLabel: - m.applicationForRenewalLicenseDescription.defaultMessage, + subLabel: m.applicationForRenewalLicenseDescription, value: B_FULL_RENEWAL_65, disabled: !currentLicense || age < 65, }) @@ -101,7 +98,7 @@ export const sectionApplicationFor = ( if (allowBELicense) { options = options.concat({ label: m.applicationForBELicenseTitle, - subLabel: m.applicationForBELicenseDescription.defaultMessage, + subLabel: m.applicationForBELicenseDescription, value: BE, disabled: !currentLicense || diff --git a/libs/application/templates/driving-license/src/lib/messages.ts b/libs/application/templates/driving-license/src/lib/messages.ts index 5bb5c988c112..07431e977201 100644 --- a/libs/application/templates/driving-license/src/lib/messages.ts +++ b/libs/application/templates/driving-license/src/lib/messages.ts @@ -641,15 +641,15 @@ export const m = defineMessages({ defaultMessage: 'Veldu sýslumannsembætti', description: 'Choose district commissioner', }, - chooseDistrictCommisionerForFullLicense: { - id: 'dl.application:chooseDistrictCommisionerForFullLicense', + chooseDistrictCommissionerForFullLicense: { + id: 'dl.application:chooseDistrictCommissionerForFullLicense', defaultMessage: - 'Veldu það embætti sýslumanns þar sem þú vilt skila inn bráðabirgðaskírteini og fá afhent nýtt fullnaðarskírteini', + 'Veldu það embætti sýslumanns þar sem þú vilt skila inn eldra ökuskírteini og fá afhent nýtt með nýjum réttindunum', description: 'Choose district commissioner for returning a temporary license and recieve a new full license', }, - chooseDistrictCommisionerForTempLicense: { - id: 'dl.application:chooseDistrictCommisionerForTempLicense', + chooseDistrictCommissionerForTempLicense: { + id: 'dl.application:chooseDistrictCommissionerForTempLicense', defaultMessage: 'Veldu það embætti sýslumanns sem þú hyggst skila inn gæðamerktri ljósmynd', description: 'Choose district commissioner for submitting a quality photo', diff --git a/libs/application/templates/driving-license/src/lib/utils/formUtils.ts b/libs/application/templates/driving-license/src/lib/utils/formUtils.ts index 69897b5d9bae..00a0b876c073 100644 --- a/libs/application/templates/driving-license/src/lib/utils/formUtils.ts +++ b/libs/application/templates/driving-license/src/lib/utils/formUtils.ts @@ -62,8 +62,8 @@ export const chooseDistrictCommissionerDescription = ({ ) === B_TEMP return applicationForTemp - ? m.chooseDistrictCommisionerForTempLicense.defaultMessage - : m.chooseDistrictCommisionerForFullLicense.defaultMessage + ? m.chooseDistrictCommissionerForTempLicense + : m.chooseDistrictCommissionerForFullLicense } export const hasCompletedPrerequisitesStep =