diff --git a/app/src/frontend/building/data-container.tsx b/app/src/frontend/building/data-container.tsx index b3726806..6315cb91 100644 --- a/app/src/frontend/building/data-container.tsx +++ b/app/src/frontend/building/data-container.tsx @@ -246,16 +246,10 @@ const withCopyEdit: (wc: React.ComponentType) => DataContaine } catch(err) { this.setState({error: err}); } - - if (slug == 'current_landuse_group'){ - const edits = { - ['current_landuse_verified']: true - }; - } else { - const edits = { - [slug]: value - }; - } + + const edits = (slug == 'current_landuse_group') ? + {['current_landuse_verified']: true} : + {[slug]: value} this.doSubmit(edits); console.log(slug + " verify button clicked")