From 08b70a2da76e1cf8e5474270c23826debec8a585 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=8Dvar=20Oddsson?= Date: Wed, 9 Oct 2024 15:16:55 +0000 Subject: [PATCH] Fix texts --- .../backend/src/app/formatters/formatters.ts | 8 ++++---- .../backend/src/app/messages/notifications.ts | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/judicial-system/backend/src/app/formatters/formatters.ts b/apps/judicial-system/backend/src/app/formatters/formatters.ts index 84add6be6b4a..62ed174bfee4 100644 --- a/apps/judicial-system/backend/src/app/formatters/formatters.ts +++ b/apps/judicial-system/backend/src/app/formatters/formatters.ts @@ -677,19 +677,19 @@ export const formatAdvocateAssignedEmailNotification = ( const subject = advocateType === AdvocateType.DEFENDER ? formatMessage( - notifications.defenderAssignedEmail.subjectAccessToCaseFiles, + notifications.advocateAssignedEmail.subjectAccessToCaseFiles, { court: capitalize(theCase.court?.name ?? ''), }, ) - : formatMessage(notifications.defenderAssignedEmail.subjectAccess, { + : formatMessage(notifications.advocateAssignedEmail.subjectAccess, { courtCaseNumber: theCase.courtCaseNumber, }) const body = advocateType === AdvocateType.DEFENDER ? formatMessage( - notifications.defenderAssignedEmail.bodyAccessToCaseFiles, + notifications.advocateAssignedEmail.bodyAccessToCaseFiles, { defenderHasAccessToRVG: Boolean(overviewUrl), courtCaseNumber: capitalize(theCase.courtCaseNumber ?? ''), @@ -699,7 +699,7 @@ export const formatAdvocateAssignedEmailNotification = ( linkEnd: '', }, ) - : formatMessage(notifications.defenderAssignedEmail.bodyAccess, { + : formatMessage(notifications.advocateAssignedEmail.bodyAccess, { court: theCase.court?.name, advocateType, courtCaseNumber: capitalize(theCase.courtCaseNumber ?? ''), diff --git a/apps/judicial-system/backend/src/app/messages/notifications.ts b/apps/judicial-system/backend/src/app/messages/notifications.ts index c1719a542750..9777fdd1be49 100644 --- a/apps/judicial-system/backend/src/app/messages/notifications.ts +++ b/apps/judicial-system/backend/src/app/messages/notifications.ts @@ -607,7 +607,7 @@ export const notifications = { 'Notaður sem texti í tölvupósti til verjanda vegna breytingar á lengd gæslu/einangrunar/vistunar þar sem úrskurðað var í einangrun.', }, }), - defenderAssignedEmail: defineMessages({ + advocateAssignedEmail: defineMessages({ subjectAccessToCaseFiles: { id: 'judicial.system.backend:notifications.defender_assigned_email.subject_access_to_case_files', defaultMessage: '{court} - aðgangur að málsgögnum',