diff --git a/src/components/Authorized/Secured.js b/src/components/Authorized/Secured.js index 1012da46c9e02c219e53b77b2cdfa9f624b502b0..d31cc5650233cb3d7d25b9d51bacc7d265b04451 100644 --- a/src/components/Authorized/Secured.js +++ b/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); }; };