permission-react: fix usePermission tests
Signed-off-by: MT Lewis <mtlewis@users.noreply.github.com>
This commit is contained in:
@@ -31,7 +31,7 @@ const permission = createPermission({
|
||||
});
|
||||
|
||||
const TestComponent: FC = () => {
|
||||
const { loading, allowed, error } = usePermission(permission);
|
||||
const { loading, allowed, error } = usePermission({ permission });
|
||||
return (
|
||||
<div>
|
||||
{loading && 'loading'}
|
||||
|
||||
Reference in New Issue
Block a user