소스 검색

fix: modify argument name (#1752)

EthanWan 7 년 전
부모
커밋
c5df07343d
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      src/components/Authorized/Secured.js

+ 2 - 2
src/components/Authorized/Secured.js

@@ -46,8 +46,8 @@ const authorize = (authority, error) => {
   if (!authority) {
   if (!authority) {
     throw new Error('authority is required');
     throw new Error('authority is required');
   }
   }
-  return function decideAuthority(targer) {
-    const component = CheckPermissions(authority, targer, classError || Exception403);
+  return function decideAuthority(target) {
+    const component = CheckPermissions(authority, target, classError || Exception403);
     return checkIsInstantiation(component);
     return checkIsInstantiation(component);
   };
   };
 };
 };