From f0acbcecc1ec20f88b39f56fc3123f54aa922931 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iiro=20J=C3=A4ppinen?= Date: Wed, 20 Nov 2024 18:23:18 +0200 Subject: [PATCH] style: add function body --- src/hooks/use-has-user-interacted.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/hooks/use-has-user-interacted.ts b/src/hooks/use-has-user-interacted.ts index 22807ef..da5bf6f 100644 --- a/src/hooks/use-has-user-interacted.ts +++ b/src/hooks/use-has-user-interacted.ts @@ -17,4 +17,7 @@ import { UsercentricsContext } from '../context.js' * }, [hasUserInteracted]) * } */ -export const useHasUserInteracted = (): boolean => useContext(UsercentricsContext).hasInteracted +export const useHasUserInteracted = (): boolean => { + const { hasInteracted } = useContext(UsercentricsContext) + return hasInteracted +}