fix if statement

This commit is contained in:
Ed Chalstrey 2022-05-12 15:57:46 +01:00
parent 6f6e8e098a
commit 8bc77b38b3

View File

@ -16,7 +16,7 @@ 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" || "Expert estimate from image"){ if (props.building.date_source == "Expert knowledge of building" || props.building.date_source == "Expert estimate from image"){
return ( return (
<Fragment> <Fragment>
<YearDataEntry <YearDataEntry