fix if statement
This commit is contained in:
parent
6f6e8e098a
commit
8bc77b38b3
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user