Shun Miyazawa %!s(int64=4) %!d(string=hai) anos
pai
achega
3ffaca539b

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

@@ -191,10 +191,12 @@ class SecuritySetting extends React.Component {
       : adminGeneralSecurityContainer.state.expandOtherOptionsForCompleteDeletion;
       : adminGeneralSecurityContainer.state.expandOtherOptionsForCompleteDeletion;
 
 
     const setExpantOtherOptions = () => {
     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 (
     return (