make link not appear for N/A

This commit is contained in:
Ed Chalstrey 2022-05-12 16:13:06 +01:00
parent 43c34b8ad9
commit 121437d5cc

View File

@ -16,7 +16,10 @@ import { CategoryViewProps } from './category-view-props';
*/ */
const AgeView: React.FunctionComponent<CategoryViewProps> = (props) => { const AgeView: React.FunctionComponent<CategoryViewProps> = (props) => {
const currentYear = new Date().getFullYear(); const currentYear = new Date().getFullYear();
if (props.building.date_source == "Expert knowledge of building" || props.building.date_source == "Expert estimate from image"){ if (props.building.date_source == "Expert knowledge of building" ||
props.building.date_source == "Expert estimate from image" ||
props.building.date_source == "N/A"
){
return ( return (
<Fragment> <Fragment>
<YearDataEntry <YearDataEntry