diff --git a/frontend/src/component/feature/form/index.jsx b/frontend/src/component/feature/form/index.jsx
index 302ccd5305..945ebf8a85 100644
--- a/frontend/src/component/feature/form/index.jsx
+++ b/frontend/src/component/feature/form/index.jsx
@@ -64,9 +64,8 @@ class AddFeatureToggleComponent extends Component {
{
- // todo is wrong way to get value?
- setValue('enabled', (console.log(v.target) && v.target.value === 'on'));
+ onChange={() => {
+ setValue('enabled', !enabled);
}}>Enabled