Skip to content

Commit

Permalink
local language Epic highlighted text fallback to default rrcp when co…
Browse files Browse the repository at this point in the history
…py not supplied
  • Loading branch information
paul-daniel-dempsey committed Aug 29, 2023
1 parent 576ea35 commit 954f037
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/server/src/api/epicRouter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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,
Expand Down

0 comments on commit 954f037

Please sign in to comment.