Skip to content

Commit

Permalink
Fix texts
Browse files Browse the repository at this point in the history
  • Loading branch information
oddsson committed Oct 9, 2024
1 parent c1133f8 commit 08b70a2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions apps/judicial-system/backend/src/app/formatters/formatters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 ?? ''),
Expand All @@ -699,7 +699,7 @@ export const formatAdvocateAssignedEmailNotification = (
linkEnd: '</a>',
},
)
: formatMessage(notifications.defenderAssignedEmail.bodyAccess, {
: formatMessage(notifications.advocateAssignedEmail.bodyAccess, {
court: theCase.court?.name,
advocateType,
courtCaseNumber: capitalize(theCase.courtCaseNumber ?? ''),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 08b70a2

Please sign in to comment.