Explorar o código

fix: modify argument name (#1752)

EthanWan %!s(int64=8) %!d(string=hai) anos
pai
achega
c5df07343d
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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) {
     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);
   };
 };