allowed display for english only if no welsh
This commit is contained in:
@@ -22,7 +22,11 @@ const Pinswg_dnsid = (props) => {
|
||||
</h2>
|
||||
<p className="govuk-body">
|
||||
{detailsObj.pinswg_projectdescription != null
|
||||
? router.locale == "cy"
|
||||
? detailsObj.pinswg_projectdescription.indexOf(
|
||||
";"
|
||||
) < 0
|
||||
? detailsObj.pinswg_projectdescription
|
||||
: router.locale == "cy"
|
||||
? detailsObj.pinswg_projectdescription.split(
|
||||
";"
|
||||
)[1]
|
||||
@@ -34,7 +38,11 @@ const Pinswg_dnsid = (props) => {
|
||||
|
||||
<p className="govuk-body">
|
||||
{detailsObj.pinswg_projectlocation != null
|
||||
? router.locale == "cy"
|
||||
? detailsObj.pinswg_projectlocation.indexOf(
|
||||
";"
|
||||
) < 0
|
||||
? detailsObj.pinswg_projectlocation
|
||||
: router.locale == "cy"
|
||||
? detailsObj.pinswg_projectlocation.split(
|
||||
";"
|
||||
)[1]
|
||||
|
||||
Reference in New Issue
Block a user