From 59dfaa78029a998356c22d9916ecde1cdef5d1bb Mon Sep 17 00:00:00 2001 From: Ed Chalstrey Date: Thu, 19 May 2022 10:53:57 +0100 Subject: [PATCH] fix veriification buttons --- .../building/data-components/year-data-entry.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/src/frontend/building/data-components/year-data-entry.tsx b/app/src/frontend/building/data-components/year-data-entry.tsx index 6aeae20e..50c07ae5 100644 --- a/app/src/frontend/building/data-components/year-data-entry.tsx +++ b/app/src/frontend/building/data-components/year-data-entry.tsx @@ -77,9 +77,9 @@ class YearDataEntry extends Component { slug="date_lower" allow_verify={props.allow_verify} onVerify={props.onVerify} - user_verified={props.user_verified.hasOwnProperty("date_lower")} - user_verified_as={props.user_verified.date_lower} - verified_count={props.building.verified.date_lower} + user_verified={props.user_verified} + user_verified_as={props.user_verified_as} + verified_count={props.verified_count} /> { slug="date_upper" allow_verify={props.allow_verify} onVerify={props.onVerify} - user_verified={props.user_verified.hasOwnProperty("date_upper")} - user_verified_as={props.user_verified.date_upper} - verified_count={props.building.verified.date_upper} + user_verified={props.user_verified} + user_verified_as={props.user_verified_as} + verified_count={props.verified_count} /> );