make link not appear for N/A
This commit is contained in:
parent
43c34b8ad9
commit
121437d5cc
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user