Skip to content

Commit 50cbcd3

Browse files
committed
fix: revert closed
1 parent 8c18f9f commit 50cbcd3

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/index.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -431,15 +431,13 @@ class HCaptcha extends React.Component {
431431
const hcaptcha = this._hcaptcha;
432432
const captchaId = this.captchaId;
433433

434+
this._cancelPendingExecute('hcaptcha-closed');
435+
434436
if (!this.isReady()) {
435437
return;
436438
}
437439

438-
const result = hcaptcha.close(captchaId);
439-
440-
this._cancelPendingExecute('hcaptcha-closed');
441-
442-
return result;
440+
return hcaptcha.close(captchaId);
443441
}
444442

445443
setData (data) {

0 commit comments

Comments
 (0)