languge check for relevant template language
This commit is contained in:
@@ -40,12 +40,17 @@ const RepComplete = (props) => {
|
|||||||
props.props.currentView.caseReference.appealType === 846040002;
|
props.props.currentView.caseReference.appealType === 846040002;
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
const isWelsh = router.locale === "cy";
|
||||||
const reference = isSIPS
|
const reference = isSIPS
|
||||||
? "PEDW-CONSULTATION-COMPLETE"
|
? "PEDW-CONSULTATION-COMPLETE" + isWelsh && "-CY"
|
||||||
: "PEDW-REPRESENTATION-COMPLETE";
|
: "PEDW-REPRESENTATION-COMPLETE" + isWelsh && "-CY";
|
||||||
const templateId = isSIPS
|
const templateId = isSIPS
|
||||||
? "c3f373ca-df9d-4967-bea0-3ad3a57f8dcc"
|
? isWelsh
|
||||||
: "c49785e7-3217-40b6-b33f-dffc4e58d5c1";
|
? "7d27b968-6f63-4334-b1c4-2e4a69554212"
|
||||||
|
: "c3f373ca-df9d-4967-bea0-3ad3a57f8dcc"
|
||||||
|
: isWelsh
|
||||||
|
? "6e2f0111-b352-4074-91a2-760403cd185b"
|
||||||
|
: "c49785e7-3217-40b6-b33f-dffc4e58d5c1";
|
||||||
|
|
||||||
const emailAddress =
|
const emailAddress =
|
||||||
props.props.props.props.accountDetails.accountDetails.emailaddress1;
|
props.props.props.props.accountDetails.accountDetails.emailaddress1;
|
||||||
|
|||||||
@@ -39,16 +39,13 @@ let CompleteAppeal = (props) => {
|
|||||||
let updateFormCollection = appTypeCollection.LogicalCollectionName;
|
let updateFormCollection = appTypeCollection.LogicalCollectionName;
|
||||||
let primaryAttribute = appTypeCollection.PrimaryIdAttribute;
|
let primaryAttribute = appTypeCollection.PrimaryIdAttribute;
|
||||||
|
|
||||||
// updateCase(
|
const isWelsh = router.locale === "cy";
|
||||||
// incidentId,
|
|
||||||
// updateBody,
|
|
||||||
// updateFormCollection,
|
|
||||||
// primaryAttribute,
|
|
||||||
// props.appealType.caseReference.ticketnumber
|
|
||||||
// );
|
|
||||||
|
|
||||||
const reference = "PEDW-COMPLETE";
|
const templateId = isWelsh
|
||||||
const templateId = "618e0463-b092-4733-a024-bf8a3bbde808";
|
? "f859163e-3ae7-43f9-929b-4206baa09a8b"
|
||||||
|
: "618e0463-b092-4733-a024-bf8a3bbde808";
|
||||||
|
|
||||||
|
const reference = "PEDW-COMPLETE" + isWelsh && "-CY";
|
||||||
const emailAddress = props.props.accountDetails.loggedinUserEmail;
|
const emailAddress = props.props.accountDetails.loggedinUserEmail;
|
||||||
const personalisation = {
|
const personalisation = {
|
||||||
"caseReference": props.appealType.caseReference.ticketnumber,
|
"caseReference": props.appealType.caseReference.ticketnumber,
|
||||||
|
|||||||
Reference in New Issue
Block a user