Skip to content

Commit

Permalink
typo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
HughParry committed Jun 18, 2024
1 parent d87df48 commit d6e0b9d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import { useEffect, useState } from 'react'
import { BotDetectionFunction, ProcaptchaFrictionlessProps } from '@prosopo/types'
import { isBot } from '@prosopo/detector'

const custonDetectBot: BotDetectionFunction = async () => {
const customDetectBot: BotDetectionFunction = async () => {
return await isBot().then((result) => {
const bot = result.isBot
return { bot }
Expand All @@ -28,7 +28,7 @@ const custonDetectBot: BotDetectionFunction = async () => {
export const ProcaptchaFrictionless = ({
config,
callbacks,
detectBot = custonDetectBot,
detectBot = customDetectBot,
}: ProcaptchaFrictionlessProps) => {
const [componentToRender, setComponentToRender] = useState(<ProcaptchaPlaceholder darkMode={config.theme} />)

Expand Down

0 comments on commit d6e0b9d

Please sign in to comment.