From 8f8edd0a174e64eaa67e226cd423b189c914a89f Mon Sep 17 00:00:00 2001 From: Mateusz Konieczny Date: Mon, 7 Nov 2022 10:03:29 +0100 Subject: [PATCH] deduplicate --- .../building/data-components/planning-data-entry.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/frontend/building/data-components/planning-data-entry.tsx b/app/src/frontend/building/data-components/planning-data-entry.tsx index 47cecc79..78ed556c 100644 --- a/app/src/frontend/building/data-components/planning-data-entry.tsx +++ b/app/src/frontend/building/data-components/planning-data-entry.tsx @@ -64,12 +64,12 @@ const LinkIfAvailable = (link) => { const StatusInfo = ({status, statusBeforeAliasing}) => { if(status == null) { - return
Current planning application status for this site: {LinkIfAvailable(null)}
+ return <>{LinkIfAvailable(null)} } if(status != statusBeforeAliasing) { - return
Current planning application status for this site: {status} - status in raw data was: {statusBeforeAliasing}
+ return <>{status} - status in raw data was: {statusBeforeAliasing} } - return
Current planning application status for this site: {status}
+ return <>{status} } const PlanningDataOfficialDataEntry: React.FC = (props) => {