enable share_usage_data setting for signed in users if it isn't checked

This commit is contained in:
Sean Yesmunt 2020-02-25 21:11:47 -05:00
parent b06dbfae60
commit da15eec311
2 changed files with 3 additions and 2 deletions

View file

@ -987,5 +987,6 @@
"FINAL WARNING: This action is permanent and cannot be undone.": "FINAL WARNING: This action is permanent and cannot be undone.",
"Allow the app to access third party analytics platforms": "Allow the app to access third party analytics platforms",
"Share usage data with LBRY inc.": "Share usage data with LBRY inc.",
"Required": "Required"
"Required": "Required",
"Email %help_link% or join our %chat_link% if you encounter any trouble verifying.": "Email %help_link% or join our %chat_link% if you encounter any trouble verifying."
}

View file

@ -471,7 +471,7 @@ class SettingsPage extends React.PureComponent<Props, State> {
? __('Internal sharing is required while signed in.')
: __('Internal sharing is required to participate in rewards programs.')
}
disabled={isAuthenticated}
disabled={isAuthenticated && daemonSettings.share_usage_data}
/>
<FormField
type="checkbox"