From c5df07343da20f55da026c13c207507937231e18 Mon Sep 17 00:00:00 2001 From: EthanWan Date: Fri, 29 Jun 2018 12:29:06 +0800 Subject: [PATCH] fix: modify argument name (#1752) --- src/components/Authorized/Secured.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Authorized/Secured.js b/src/components/Authorized/Secured.js index 1012da46..d31cc565 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); }; }; -- GitLab