From 1dbd4f2964f2322284ca3074a595a19c7c2983fe Mon Sep 17 00:00:00 2001 From: Ed Chalstrey Date: Wed, 1 Jun 2022 11:29:59 +0100 Subject: [PATCH] addd currentYear var --- app/src/frontend/building/data-containers/team.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/frontend/building/data-containers/team.tsx b/app/src/frontend/building/data-containers/team.tsx index 19d950f2..16e4fa56 100644 --- a/app/src/frontend/building/data-containers/team.tsx +++ b/app/src/frontend/building/data-containers/team.tsx @@ -13,6 +13,7 @@ import { CategoryViewProps } from './category-view-props'; */ const TeamView: React.FunctionComponent = (props) => { const building = props.building; + const currentYear = new Date().getFullYear(); const currentBuildingConstructionYear = building.date_year || undefined; return (