Skip to content

Commit

Permalink
removed console log
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhila-aot committed Feb 6, 2024
1 parent e0fc6a3 commit 4d788dd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"key": "formActions",
"tags": [],
"properties": {},
"customConditional": "const UserDetails = JSON.parse(localStorage.getItem(\"UserDetails\"));\r\nconst roles = UserDetails?UserDetails[\"role\"]:[];\r\nconst isSoscAvailable = (data.submissionTypeTwo ? data.submissionTypeTwo.reportsSubmitted : false) || (data.applicationsrequested ? data.applicationsrequested.siteReclassification ||data.applicationsrequested.approvalOfBackgroundConcentrations : false) || (data.certificationdocumentradioGroup ? data.certificationdocumentradioGroup.determinationOfContaminatedSite || data.certificationdocumentradioGroup.approvalInPrinciple || data.certificationdocumentradioGroup.certificateOfCompliance : false) || (data.deraStatus !== null || data.deraStatus !== undefined) ? true : false;\r\nconsole.log('isSoscAvailable-----',isSoscAvailable);\r\nif(!UserDetails){\r\n show = false;\r\n}\r\nelse if(roles.includes(\"formsflow-client\") || \r\nroles.includes(\"formsflow-reviewer/cssa-team\") || \r\nroles.includes(\"formsflow-reviewer/cssa-manager\")|| \r\nroles.includes(\"formsflow-reviewer/csap\") || \r\nroles.includes(\"formsflow-reviewer/csap-society\") ||\r\nroles.includes(\"formsflow-reviewer/formsflow-client-reviewer\")) {\r\n show = false;\r\n}\r\nelse\r\n{\r\n if (data.riskclassification === \"exempt\" && !(isSoscAvailable)) {\r\n show = false;\r\n } else {\r\n show = true;\r\n }\r\n}",
"customConditional": "const UserDetails = JSON.parse(localStorage.getItem(\"UserDetails\"));\r\nconst roles = UserDetails?UserDetails[\"role\"]:[];\r\nconst isSoscAvailable = (data.submissionTypeTwo ? data.submissionTypeTwo.reportsSubmitted : false) || (data.applicationsrequested ? data.applicationsrequested.siteReclassification ||data.applicationsrequested.approvalOfBackgroundConcentrations : false) || (data.certificationdocumentradioGroup ? data.certificationdocumentradioGroup.determinationOfContaminatedSite || data.certificationdocumentradioGroup.approvalInPrinciple || data.certificationdocumentradioGroup.certificateOfCompliance : false) || (data.deraStatus !== null || data.deraStatus !== undefined) ? true : false;\r\nif(!UserDetails){\r\n show = false;\r\n}\r\nelse if(roles.includes(\"formsflow-client\") || \r\nroles.includes(\"formsflow-reviewer/cssa-team\") || \r\nroles.includes(\"formsflow-reviewer/cssa-manager\")|| \r\nroles.includes(\"formsflow-reviewer/csap\") || \r\nroles.includes(\"formsflow-reviewer/csap-society\") ||\r\nroles.includes(\"formsflow-reviewer/formsflow-client-reviewer\")) {\r\n show = false;\r\n}\r\nelse\r\n{\r\n if (data.riskclassification === \"exempt\" && !(isSoscAvailable)) {\r\n show = false;\r\n } else {\r\n show = true;\r\n }\r\n}",
"conditional": {
"json": "",
"show": null,
Expand Down

0 comments on commit 4d788dd

Please sign in to comment.