Skip to content

Commit

Permalink
chore: improve logs
Browse files Browse the repository at this point in the history
  • Loading branch information
marsidev committed Apr 27, 2024
1 parent 460bbc8 commit 0be54b0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/lib/src/lib.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ export const Turnstile = forwardRef<TurnstileInstance | undefined, TurnstileProp
!checkIfTurnstileLoaded() ||
widgetId.current
) {
console.warn('Turnstile has not been loaded or widget already rendered')
console.warn('Turnstile has not been loaded or container not found')
return
}

Expand All @@ -212,6 +212,7 @@ export const Turnstile = forwardRef<TurnstileInstance | undefined, TurnstileProp

execute() {
if (options.execution !== 'execute') {
console.warn('Execution mode is not set to "execute"')
return
}

Expand All @@ -221,7 +222,7 @@ export const Turnstile = forwardRef<TurnstileInstance | undefined, TurnstileProp
!widgetId.current ||
!checkIfTurnstileLoaded()
) {
console.warn('Turnstile has not been loaded or widget has not been rendered')
console.warn('Turnstile has not been loaded or container not found')
return
}

Expand Down

0 comments on commit 0be54b0

Please sign in to comment.