zahmis 5 лет назад
Родитель
Сommit
496632b9e7
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      src/client/js/components/Admin/App/AppSetting.jsx

+ 2 - 2
src/client/js/components/Admin/App/AppSetting.jsx

@@ -117,7 +117,7 @@ class AppSetting extends React.Component {
                 id="radio-email-show"
                 className="custom-control-input"
                 name="mailVisibility"
-                checked={adminAppContainer.state.isEmailPublishedForNewUser}
+                checked={adminAppContainer.state.isEmailPublishedForNewUser === true}
                 onChange={() => { adminAppContainer.changeIsEmailPublishedForNewUserShow(true) }}
               />
               <label className="custom-control-label" htmlFor="radio-email-show">{t('Show')}</label>
@@ -129,7 +129,7 @@ class AppSetting extends React.Component {
                 id="radio-email-hide"
                 className="custom-control-input"
                 name="mailVisibility"
-                checked={!adminAppContainer.state.isEmailPublishedForNewUser}
+                checked={adminAppContainer.state.isEmailPublishedForNewUser === false}
                 onChange={() => { adminAppContainer.changeIsEmailPublishedForNewUserShow(false) }}
               />
               <label className="custom-control-label" htmlFor="radio-email-hide">{t('Hide')}</label>