addd currentYear var

This commit is contained in:
Ed Chalstrey 2022-06-01 11:29:59 +01:00
parent 1adfc5f106
commit 1dbd4f2964

View File

@ -13,6 +13,7 @@ import { CategoryViewProps } from './category-view-props';
*/ */
const TeamView: React.FunctionComponent<CategoryViewProps> = (props) => { const TeamView: React.FunctionComponent<CategoryViewProps> = (props) => {
const building = props.building; const building = props.building;
const currentYear = new Date().getFullYear();
const currentBuildingConstructionYear = building.date_year || undefined; const currentBuildingConstructionYear = building.date_year || undefined;
return ( return (
<Fragment> <Fragment>