From 954f037c548e16a2dfb1e63136ae5d41093b36a8 Mon Sep 17 00:00:00 2001 From: Paul Dempsey <76729591+paul-daniel-dempsey@users.noreply.github.com> Date: Tue, 29 Aug 2023 19:24:26 +0100 Subject: [PATCH] local language Epic highlighted text fallback to default rrcp when copy not supplied --- packages/server/src/api/epicRouter.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/server/src/api/epicRouter.ts b/packages/server/src/api/epicRouter.ts index 004dce7a7..3eb9b16a4 100644 --- a/packages/server/src/api/epicRouter.ts +++ b/packages/server/src/api/epicRouter.ts @@ -124,7 +124,11 @@ export const buildEpicRouter = ( test.name, variant.name, targeting.countryCode, - { epicHeader: variant.heading, epicParagraphs: variant.paragraphs }, + { + epicHeader: variant.heading, + epicParagraphs: variant.paragraphs, + epicHighlightedText: variant.highlightedText, + }, ); const contributionAmounts = choiceCardAmounts.get(); @@ -139,6 +143,7 @@ export const buildEpicRouter = ( ...variant, heading: localLanguage.epicHeader ?? variant.heading, paragraphs: localLanguage.epicParagraphs ?? variant.paragraphs, + highlightedText: localLanguage.epicHighlightedText ?? variant.highlightedText, tickerSettings, showReminderFields, choiceCardAmounts: variantAmounts,