Skip to content

Commit

Permalink
style: add function body
Browse files Browse the repository at this point in the history
  • Loading branch information
iiroj committed Nov 20, 2024
1 parent 72dcdd7 commit f0acbce
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/hooks/use-has-user-interacted.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit f0acbce

Please sign in to comment.