فهرست منبع

iprv checked values

kaori 3 سال پیش
والد
کامیت
7f0cb473e6
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      packages/app/src/components/Me/BasicInfoSettings.tsx

+ 2 - 2
packages/app/src/components/Me/BasicInfoSettings.tsx

@@ -91,7 +91,7 @@ const BasicInfoSettings = (props: Props) => {
               id="radioEmailShow"
               className="custom-control-input"
               name="userForm[isEmailPublished]"
-              checked={personalSettingsInfo?.isEmailPublished}
+              checked={personalSettingsInfo?.isEmailPublished === true}
               onChange={() => changePersonalSettingsHandler({ isEmailPublished: true })}
             />
             <label className="custom-control-label" htmlFor="radioEmailShow">{t('Show')}</label>
@@ -102,7 +102,7 @@ const BasicInfoSettings = (props: Props) => {
               id="radioEmailHide"
               className="custom-control-input"
               name="userForm[isEmailPublished]"
-              checked={!personalSettingsInfo?.isEmailPublished}
+              checked={personalSettingsInfo?.isEmailPublished === false}
               onChange={() => changePersonalSettingsHandler({ isEmailPublished: false })}
             />
             <label className="custom-control-label" htmlFor="radioEmailHide">{t('Hide')}</label>