Sfoglia il codice sorgente

fix: modify argument name (#1752)

EthanWan 7 anni fa
parent
commit
c5df07343d
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  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);
   };
 };