From 2e9d327dfc2d60bed7b64eb301ddae919c1c699c Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Sun, 29 Mar 2020 12:38:08 -0700 Subject: [PATCH] Fix eslint errors --- resources/scripts/components/elements/Can.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/scripts/components/elements/Can.tsx b/resources/scripts/components/elements/Can.tsx index 87f67e0a8..0906f9ff8 100644 --- a/resources/scripts/components/elements/Can.tsx +++ b/resources/scripts/components/elements/Can.tsx @@ -21,9 +21,9 @@ const Can = ({ action, renderOnError, children }: Props) => { // Allows checking for any permission matching a name, for example files.* // will return if the user has any permission under the file.XYZ namespace. ( - permission.endsWith('.*') - && permission !== 'websocket.*' - && userPermissions.filter(p => p.startsWith(permission.split('.')[0])).length > 0 + permission.endsWith('.*') && + permission !== 'websocket.*' && + userPermissions.filter(p => p.startsWith(permission.split('.')[0])).length > 0 ) // Otherwise just check if the entire permission exists in the array or not. || userPermissions.indexOf(permission) >= 0);