languge check for relevant template language

This commit is contained in:
2026-03-17 10:29:00 +00:00
parent fcd51b41bd
commit c64c47ca1f
2 changed files with 15 additions and 13 deletions
@@ -40,12 +40,17 @@ const RepComplete = (props) => {
props.props.currentView.caseReference.appealType === 846040002;
useEffect(() => {
const isWelsh = router.locale === "cy";
const reference = isSIPS
? "PEDW-CONSULTATION-COMPLETE"
: "PEDW-REPRESENTATION-COMPLETE";
? "PEDW-CONSULTATION-COMPLETE" + isWelsh && "-CY"
: "PEDW-REPRESENTATION-COMPLETE" + isWelsh && "-CY";
const templateId = isSIPS
? "c3f373ca-df9d-4967-bea0-3ad3a57f8dcc"
: "c49785e7-3217-40b6-b33f-dffc4e58d5c1";
? isWelsh
? "7d27b968-6f63-4334-b1c4-2e4a69554212"
: "c3f373ca-df9d-4967-bea0-3ad3a57f8dcc"
: isWelsh
? "6e2f0111-b352-4074-91a2-760403cd185b"
: "c49785e7-3217-40b6-b33f-dffc4e58d5c1";
const emailAddress =
props.props.props.props.accountDetails.accountDetails.emailaddress1;