Ver Fonte

fix type

Shun Miyazawa há 4 anos atrás
pai
commit
6f1a904649

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

@@ -43,8 +43,8 @@ class SecuritySetting extends React.Component {
 
     const isRecursiveDeletion = deletionType === DeletionType.RecursiveDeletion || deletionType === DeletionType.RecursiveCompleteDeletion;
 
-    const forceCahge = isRecursiveDeletion && isButtonDisabled && currentState === PageDeleteConfigValue.AdminAndAuthor;
-    if (forceCahge) {
+    const forceChange = isRecursiveDeletion && isButtonDisabled && currentState === PageDeleteConfigValue.AdminAndAuthor;
+    if (forceChange) {
       switch (deletionType) {
         case DeletionType.RecursiveDeletion:
           setState(adminGeneralSecurityContainer.state.currentPageDeletionAuthority);