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
+6 -9
View File
@@ -39,16 +39,13 @@ let CompleteAppeal = (props) => {
let updateFormCollection = appTypeCollection.LogicalCollectionName;
let primaryAttribute = appTypeCollection.PrimaryIdAttribute;
// updateCase(
// incidentId,
// updateBody,
// updateFormCollection,
// primaryAttribute,
// props.appealType.caseReference.ticketnumber
// );
const isWelsh = router.locale === "cy";
const reference = "PEDW-COMPLETE";
const templateId = "618e0463-b092-4733-a024-bf8a3bbde808";
const templateId = isWelsh
? "f859163e-3ae7-43f9-929b-4206baa09a8b"
: "618e0463-b092-4733-a024-bf8a3bbde808";
const reference = "PEDW-COMPLETE" + isWelsh && "-CY";
const emailAddress = props.props.accountDetails.loggedinUserEmail;
const personalisation = {
"caseReference": props.appealType.caseReference.ticketnumber,