Quick fix for "checked propType" errors spewing in console, for settings #687

Closed
hackrush01 wants to merge 3 commits from settings_quickfix into master
3 changed files with 5 additions and 5 deletions

View file

@ -17,7 +17,7 @@ Web UI version numbers should always match the corresponding version of LBRY App
### Fixed ### Fixed
* Fixed handling of empty search results. * Fixed handling of empty search results.
* * Some console errors about "checked propType" when navigating to settings page.
### Deprecated ### Deprecated
* *

View file

@ -237,7 +237,7 @@ class SettingsPage extends React.PureComponent {
<FormRow <FormRow
type="radio" type="radio"
name="instant_purchase_max" name="instant_purchase_max"
checked={!instantPurchaseEnabled} defaultChecked={!instantPurchaseEnabled}
label={__("Ask for confirmation of all purchases")} label={__("Ask for confirmation of all purchases")}
onClick={e => { onClick={e => {
this.onInstantPurchaseEnabledChange(false); this.onInstantPurchaseEnabledChange(false);
@ -247,7 +247,7 @@ class SettingsPage extends React.PureComponent {
<FormField <FormField
type="radio" type="radio"
name="instant_purchase_max" name="instant_purchase_max"
checked={instantPurchaseEnabled} defaultChecked={instantPurchaseEnabled}
label={ label={
"Single-click purchasing of content less than" + "Single-click purchasing of content less than" +
(instantPurchaseEnabled ? "" : "...") (instantPurchaseEnabled ? "" : "...")

View file

@ -311,13 +311,13 @@ debug@2.2.0:
dependencies: dependencies:
ms "0.7.1" ms "0.7.1"
debug@2.6.0, debug@^2.3.2, debug@^2.6.0: debug@2.6.0:
version "2.6.0" version "2.6.0"
resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.0.tgz#bc596bcabe7617f11d9fa15361eded5608b8499b" resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.0.tgz#bc596bcabe7617f11d9fa15361eded5608b8499b"
dependencies: dependencies:
ms "0.7.2" ms "0.7.2"
debug@^2.1.3, debug@^2.2.0, debug@^2.6.8: debug@^2.1.3, debug@^2.2.0, debug@^2.3.2, debug@^2.6.0, debug@^2.6.8:
version "2.6.8" version "2.6.8"
resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.8.tgz#e731531ca2ede27d188222427da17821d68ff4fc" resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.8.tgz#e731531ca2ede27d188222427da17821d68ff4fc"
dependencies: dependencies: