Shun Miyazawa před 4 roky
rodič
revize
3ffaca539b

+ 6 - 4
packages/app/src/components/Admin/Security/SecuritySetting.jsx

@@ -191,10 +191,12 @@ class SecuritySetting extends React.Component {
       : adminGeneralSecurityContainer.state.expandOtherOptionsForCompleteDeletion;
 
     const setExpantOtherOptions = () => {
-      // eslint-disable-next-line no-unused-expressions
-      isTypeDeletion(deletionType)
-        ? adminGeneralSecurityContainer.switchExpandOtherOptionsForDeletion()
-        : adminGeneralSecurityContainer.switchExpandOtherOptionsForCompleteDeletion();
+      if (isTypeDeletion(deletionType)) {
+        adminGeneralSecurityContainer.switchExpandOtherOptionsForDeletion();
+        return;
+      }
+      adminGeneralSecurityContainer.switchExpandOtherOptionsForCompleteDeletion();
+      return;
     };
 
     return (