From 6369327be2ac5d1ac395d3451eace210b44515a2 Mon Sep 17 00:00:00 2001 From: Karl Andin Date: Wed, 6 Mar 2024 11:28:57 +0100 Subject: [PATCH] fix(KUI-1226): fix use on lang vs langIndex in RoundApplicationInfo --- public/js/app/components/RoundApplicationInfo.jsx | 3 ++- public/js/app/components/RoundInformationOneCol.jsx | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/public/js/app/components/RoundApplicationInfo.jsx b/public/js/app/components/RoundApplicationInfo.jsx index 244cdf23..b80285d4 100644 --- a/public/js/app/components/RoundApplicationInfo.jsx +++ b/public/js/app/components/RoundApplicationInfo.jsx @@ -9,12 +9,13 @@ const RoundApplicationInfo = ({ roundHeader, selectedRoundHeader, userLanguage, + userLanguageIndex, round, showRoundData, courseHasRound, fundingType, }) => { - const { courseRoundInformation, courseLabels } = i18n.messages[userLanguage] + const { courseRoundInformation, courseLabels } = i18n.messages[userLanguageIndex] const openApplicationLink = ev => { ev.preventDefault() diff --git a/public/js/app/components/RoundInformationOneCol.jsx b/public/js/app/components/RoundInformationOneCol.jsx index a3347018..76409eb0 100644 --- a/public/js/app/components/RoundInformationOneCol.jsx +++ b/public/js/app/components/RoundInformationOneCol.jsx @@ -185,7 +185,8 @@ function RoundInformationOneCol({