From d031239245f5d9432aac65b2b0a050d9828b8aa8 Mon Sep 17 00:00:00 2001 From: Ed Chalstrey Date: Mon, 6 Jun 2022 14:24:16 +0100 Subject: [PATCH] change logic to use has_extension --- .../building/data-containers/team.tsx | 48 +++++++++---------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/app/src/frontend/building/data-containers/team.tsx b/app/src/frontend/building/data-containers/team.tsx index 1d2b5984..c44b617b 100644 --- a/app/src/frontend/building/data-containers/team.tsx +++ b/app/src/frontend/building/data-containers/team.tsx @@ -33,30 +33,7 @@ const TeamView: React.FunctionComponent = (props) => { placeholder={dataFields.has_extension.example} options={dataFields.has_extension.items} /> - {props.building.has_extension == "The main building" ? ( - <> - - - - ) : ( + {props.building.has_extension ? ( <> = (props) => { verified_count={props.building.verified.extension_year} /> + ) : ( + <> + + + )}