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

This commit is contained in:
hackrush 2017-10-18 23:19:47 +05:30
parent 782fb5d59e
commit 801df9bbbc

View file

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