Skip to content

Commit

Permalink
Merge pull request #181 from hCaptcha/fix/onverify
Browse files Browse the repository at this point in the history
fix(lib): Add check for onVerify
  • Loading branch information
zoryana94 authored Apr 6, 2023
2 parents 8e6a0c0 + 39aeaab commit 61de495
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hcaptcha/react-hcaptcha",
"version": "1.6.0",
"version": "1.6.1",
"types": "types/index.d.ts",
"main": "dist/index.js",
"module": "dist/esm/index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ class HCaptcha extends React.Component {

const token = hcaptcha.getResponse(captchaId) //Get response token from hCaptcha widget
const ekey = hcaptcha.getRespKey(captchaId) //Get current challenge session id from hCaptcha widget
onVerify(token, ekey) //Dispatch event to verify user response
if (onVerify) onVerify(token, ekey) //Dispatch event to verify user response
}

handleExpire () {
Expand Down
File renamed without changes.

0 comments on commit 61de495

Please sign in to comment.