From 121437d5cc7294ff29bf8b314940711efed97c83 Mon Sep 17 00:00:00 2001 From: Ed Chalstrey Date: Thu, 12 May 2022 16:13:06 +0100 Subject: [PATCH] make link not appear for N/A --- app/src/frontend/building/data-containers/age.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/frontend/building/data-containers/age.tsx b/app/src/frontend/building/data-containers/age.tsx index f0fd429f..efd58a95 100644 --- a/app/src/frontend/building/data-containers/age.tsx +++ b/app/src/frontend/building/data-containers/age.tsx @@ -16,7 +16,10 @@ import { CategoryViewProps } from './category-view-props'; */ const AgeView: React.FunctionComponent = (props) => { 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 (