From cb9bc970b6c157ececf96244013cc17a3f06bdff Mon Sep 17 00:00:00 2001 From: rdbsolutions Date: Thu, 27 Jan 2022 14:02:09 +0000 Subject: [PATCH] allowed display for english only if no welsh --- components/case/summaryTypes/pinswg_dnsid.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/components/case/summaryTypes/pinswg_dnsid.js b/components/case/summaryTypes/pinswg_dnsid.js index b27dc1be..7c47f853 100644 --- a/components/case/summaryTypes/pinswg_dnsid.js +++ b/components/case/summaryTypes/pinswg_dnsid.js @@ -22,7 +22,11 @@ const Pinswg_dnsid = (props) => {

{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) => {

{detailsObj.pinswg_projectlocation != null - ? router.locale == "cy" + ? detailsObj.pinswg_projectlocation.indexOf( + ";" + ) < 0 + ? detailsObj.pinswg_projectlocation + : router.locale == "cy" ? detailsObj.pinswg_projectlocation.split( ";" )[1]