This commit is contained in:
Ed Chalstrey 2022-05-19 10:39:11 +01:00
parent 485190842f
commit 66ecd2b619

View File

@ -29,7 +29,9 @@ const AgeView: React.FunctionComponent<CategoryViewProps> = (props) => {
mode={props.mode} mode={props.mode}
copy={props.copy} copy={props.copy}
onChange={props.onChange} onChange={props.onChange}
/>
<Verification
slug="date_year"
allow_verify={props.user !== undefined && props.building.date_year !== null && !props.edited} allow_verify={props.user !== undefined && props.building.date_year !== null && !props.edited}
onVerify={props.onVerify} onVerify={props.onVerify}
user_verified={props.user_verified.hasOwnProperty("date_year")} user_verified={props.user_verified.hasOwnProperty("date_year")}
@ -104,7 +106,9 @@ const AgeView: React.FunctionComponent<CategoryViewProps> = (props) => {
mode={props.mode} mode={props.mode}
copy={props.copy} copy={props.copy}
onChange={props.onChange} onChange={props.onChange}
/>
<Verification
slug="date_year"
allow_verify={props.user !== undefined && props.building.date_year !== null && !props.edited} allow_verify={props.user !== undefined && props.building.date_year !== null && !props.edited}
onVerify={props.onVerify} onVerify={props.onVerify}
user_verified={props.user_verified.hasOwnProperty("date_year")} user_verified={props.user_verified.hasOwnProperty("date_year")}