languge check for relevant template language
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user