Skip to content
This repository was archived by the owner on Feb 22, 2022. It is now read-only.

Commit 1249fe6

Browse files
gbraadanjannath
authored andcommitted
Fix issue with consent checkbox
1 parent 408b83b commit 1249fe6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/Configuration.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ export default class Configuration extends React.Component {
112112
<FormGroup fieldId='config-telemetry' label="Telemetry">
113113
<Checkbox id='config-consentTelemetry'
114114
className="consentTelemetry"
115-
value={this.state["consent-telemetry"]}
116-
onChange={value => this.props.onValueChanged(this, 'consent-telemetry', value)}
115+
isChecked={this.state["consent-telemetry"] === "yes" ? true : false }
116+
onChange={value => this.updateValue('consent-telemetry', value === true ? "yes" : "no")}
117117
label="Report telemetry to Red Hat"
118118
description="Consent to allow basic information about the system and cluster to be collected for development and debugging purposes" />
119119
</FormGroup>

0 commit comments

Comments
 (0)