deduplicate

This commit is contained in:
Mateusz Konieczny 2022-11-07 10:03:29 +01:00
parent ba605dbb5f
commit 8f8edd0a17

View File

@ -64,12 +64,12 @@ const LinkIfAvailable = (link) => {
const StatusInfo = ({status, statusBeforeAliasing}) => { const StatusInfo = ({status, statusBeforeAliasing}) => {
if(status == null) { if(status == null) {
return <div><b>Current planning application status for this site</b>: {LinkIfAvailable(null)}</div> return <>{LinkIfAvailable(null)}</>
} }
if(status != statusBeforeAliasing) { if(status != statusBeforeAliasing) {
return <div><b>Current planning application status for this site:</b> {status} - status in raw data was: {statusBeforeAliasing}</div> return <>{status} - status in raw data was: {statusBeforeAliasing}</>
} }
return <div><b>Current planning application status for this site:</b> {status}</div> return <>{status}</>
} }
const PlanningDataOfficialDataEntry: React.FC<PlanningDataOfficialDataEntryProps> = (props) => { const PlanningDataOfficialDataEntry: React.FC<PlanningDataOfficialDataEntryProps> = (props) => {