diff --git a/packages/forgetti/src/core/utils/get-hoc-definition-from-callee.ts b/packages/forgetti/src/core/utils/get-hoc-definition-from-callee.ts index 4e94c02..e1f8297 100644 --- a/packages/forgetti/src/core/utils/get-hoc-definition-from-callee.ts +++ b/packages/forgetti/src/core/utils/get-hoc-definition-from-callee.ts @@ -29,7 +29,7 @@ export function getHOCDefinitionFromCallee( if (id) { const binding = path.scope.getBindingIdentifier(id.name); if (binding) { - return ctx.registrations.hooks.identifiers.get(binding); + return ctx.registrations.hocs.identifiers.get(binding); } return undefined; }